You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[TOSA] Add TosaLayerwiseConstantFoldPass and TosaReduceTransposes passes (llvm#4165)
Add the following passes to TorchBackendToTosaBackendPipeline:
- TosaLayerwiseConstantFoldPass: fold full-layer operations on TOSA
consts
- TosaReduceTransposes: remove unnecessary TOSA transposes to reduce
data movements
Signed-off-by: Justin Ngo <justin.ngo@arm.com>
Copy file name to clipboardExpand all lines: projects/pt1/e2e_testing/xfail_sets.py
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1731,6 +1731,15 @@
1731
1731
"HBC_basic",
1732
1732
# 1D inputs cause generated tosa.negate ops to crash downstream
1733
1733
"NllLossModule_1D_basic",
1734
+
# BertModule is not crashing, but is timing out due to TosaLayerwiseConstantFoldPass:
1735
+
# Exception ignored on calling ctypes callback function: <function RefBackendInvoker.__init__.<locals>.consume_return_funcs at 0x765783f12c20>
1736
+
# Traceback (most recent call last):
1737
+
# File "torch-mlir/build/tools/torch-mlir/python_packages/torch_mlir/torch_mlir_e2e_test/linalg_on_tensors_backends/refbackend.py", line 101, in consume_return_funcs
1738
+
# def consume_return_funcs(*args):
1739
+
# File "torch-mlir/build/tools/torch-mlir/python_packages/torch_mlir/torch_mlir_e2e_test/framework.py", line 316, in handle_timeout
1740
+
# raise TimeoutError(self.error_message)
1741
+
# TimeoutError: Timeout
1742
+
"BertModule_basic",
1734
1743
}
1735
1744
1736
1745
# Write the TOSA set as a "passing" set as it is very early in development
0 commit comments