[all-commits] [llvm/llvm-project] 08068d: [mlir][tosa] Fix tosa.avg_pool2d lowering to norma...
rsuderman via All-commits
all-commits at lists.llvm.org
Mon May 17 10:06:47 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 08068ddba7f52255fa39968207309f3d1ad98223
https://github.com/llvm/llvm-project/commit/08068ddba7f52255fa39968207309f3d1ad98223
Author: Rob Suderman <rob.suderman at gmail.com>
Date: 2021-05-17 (Mon, 17 May 2021)
Changed paths:
M mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp
M mlir/test/Conversion/TosaToLinalg/tosa-to-linalg.mlir
Log Message:
-----------
[mlir][tosa] Fix tosa.avg_pool2d lowering to normalize correctly
Initial version of pooling assumed normalization was accross all elements
equally. TOSA actually requires the noramalization is perform by how
many elements were summed (edges are not artifically dimmer). Updated
the lowering to reflect this change with corresponding tests.
Reviewed By: NatashaKnk
Differential Revision: https://reviews.llvm.org/D102540
More information about the All-commits
mailing list