-
Notifications
You must be signed in to change notification settings - Fork 621
[tosa] Implement torch.linear support. #535
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
All bit accuracy tests for matmul variants passing: Results PASS test_matmul_16_x16__f32 |
|
@silvasean The build failure seems completely unrelated to anything in this push and I don't see it when I run 'cmake --build build --target check-torch-mlir' locally. Any idea what's happening ? |
It looks like an issue related to a newer version of PyTorch (and unrelated to your PR, though if you could fix it that would be much appreciated) -- the CI always uses the latest snapshot. You can try |
|
FYI, the build failure should be fixed by this PR #536 |
|
I just tried it; it does update deps but there's no build failure. Successfully installed certifi-2021.10.8 charset-normalizer-2.0.10 idna-3.3 pybind11-2.9.0 requests-2.27.1 torch-1.11.0.dev20211231+cpu torchvision-0.12.0.dev20211231+cpu urllib3-1.26.8 wheel-0.37.1 |
Thanks! Please feel free to look at this review too if you'd like - it just leverages the earlier matmul work to also implement torch.linear (just adding an rhs transpose and a bias add to the regular matmul process). |
|
I rebased after #536 was merged and it does fix this, thank you @cathyzhyi . |
Refactor matmul into separate class and derive variants: - matmul - mm, bmm - linear Signed-off-by: Suraj Sudhir <suraj.sudhir@arm.com>
|
Nit feedback incorporated. Merging. |
|
@sjarus Hey Suraj, sry I missed this in my review but some of the |
|
Sure, I'm working on Conv2D now, but will roll this in along with it . Would that work ? |
yea, that would work! thanks! |
Refactor matmul into separate class and derive variants:
Signed-off-by: Suraj Sudhir suraj.sudhir@arm.com