This repository has been archived by the owner on Oct 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tensor.matmul to PyTorch SDK for JSI
Summary: added `matmulImpl` function to `TensorHostObject.cpp` and set the propertyHostFunction so that `matmul` references the new implementation. added tests in `TensorTests.cpp` to check that matrix multiplications in various dimensions result in the correct shape and errors are thrown when there is a shape mismatch or a non tensor is passed as the argument added proper function signature and documentation information in `torch.ts` Reviewed By: raedle, liuyinglao Differential Revision: D40067104 fbshipit-source-id: 33036ee71007b752d85f4788e32721541127c65a
- Loading branch information
Showing
3 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters