[all-commits] [llvm/llvm-project] 4309bb: [mlir][tosa] Add broadcasting case for tosa.resize...
Rob Suderman via All-commits
all-commits at lists.llvm.org
Thu Oct 20 15:45:38 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4309bb28ae77061d528b09dfe1c41335e92bc7a3
https://github.com/llvm/llvm-project/commit/4309bb28ae77061d528b09dfe1c41335e92bc7a3
Author: Rob Suderman <suderman at google.com>
Date: 2022-10-20 (Thu, 20 Oct 2022)
Changed paths:
M mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp
A mlir/test/Conversion/TosaToLinalg/tosa-to-linalg-resize.mlir
M mlir/test/Conversion/TosaToLinalg/tosa-to-linalg.mlir
Log Message:
-----------
[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
More information about the All-commits
mailing list