-
Notifications
You must be signed in to change notification settings - Fork 11.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mlir][tosa] Add broadcasting case for tosa.resize degenerate case
When the resize is ?x1x1x?, the tosa.resize operation broadcasts the input and (when quantized) applies a scaling factor. Updated the resize operation to not use a tensor.extract operation, instead broadcasting the only positional value as necessary. Moved the tosa.resize tests to their own mlir test due to increased complexity. Also corrected a bug where tosa.resize for bilinear-floating point was not applying the correct scaling. Reviewed By: jpienaar Differential Revision: https://reviews.llvm.org/D136299
- Loading branch information
Showing
3 changed files
with
641 additions
and
407 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.