forked from llvm/torch-mlir
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TOSA] Update tosa.mul's
shift
as input
* In TOSA v1.0, tosa.mul's `shift` is an input. This commit updates Torch to TOSA in alignment with that change. * Update `tosa::createMulOpAndCast()` function to create a const shift TOSA tensor based on the provided shift value. This should be the API used to create tosa.mul from now on (instead of using `rewriter.create<tosa::MulOp>()`). * Update `tosa::CreateOpAndInfer()` function to call `tosa::CreateOpAndInferShape()` function. * Update LIT tests. Signed-off-by: Justin Ngo <[email protected]> Change-Id: I84aeccacbb33eee65e5923725ace86a78f877869
- Loading branch information
1 parent
460c9f3
commit af2aff6
Showing
6 changed files
with
490 additions
and
417 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
Oops, something went wrong.