Skip to content

Commit 7db95bb

Browse files
committed
[Sync LLVM] Fix ResNet-18 bug.
1. Regenerate ResNet-18.mlir using torch-mlir. This is necessary due to changes made to the TOSA dialect interface in the upstream repo, see: llvm/llvm-project@11030c7 2. Adjust the order of passes for TOSA dialect lowering to guarantee correct execution. Specifically, after tosa-to-linalg pass, there may be tosa.reshape ops that require further lowering by means of tosa-to-tensor pass. So the latter pass should appear after the former pass.
1 parent 04d5822 commit 7db95bb

File tree

3 files changed

+340
-345
lines changed

3 files changed

+340
-345
lines changed

benchmarks/DeepLearning/Models/CMakeLists.txt

+1-2
Original file line numberDiff line numberDiff line change

benchmarks/DeepLearning/Models/ResNet-18/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change

benchmarks/DeepLearning/Models/ResNet-18/ResNet-18.mlir

+338-342
Original file line numberDiff line numberDiff line change

0 commit comments

Comments
 (0)