Skip to content

Commit 012d61f

Browse files
authored
Fix tests in test_mm.py
Differential Revision: D61487429 Pull Request resolved: #4775
1 parent 447dc6c commit 012d61f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

backends/arm/test/ops/test_mm.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
logger = logging.getLogger(__name__)
1818
logger.setLevel(logging.INFO)
1919

20+
torch.manual_seed(0)
21+
2022

2123
class TestMM(unittest.TestCase):
2224
"""Tests MatMul"""
@@ -124,10 +126,12 @@ def test_mm_single_input_tosa_BI(self, operand1: torch.Tensor):
124126
test_data = (operand1,)
125127
self._test_mm_tosa_BI_pipeline(self.MMSingleInput(), test_data)
126128

129+
# Expected to fail with error: CPU performance estimation for "MatMul" not implemented
127130
@parameterized.expand(MM.test_parameters)
131+
@unittest.expectedFailure
128132
def test_mm_u55_BI(self, operand1: torch.Tensor, operand2: torch.Tensor):
129133
test_data = (operand1, operand2)
130-
self._test_mm_tosa_BI_pipeline(self.MM(), test_data)
134+
self._test_mm_u55_BI_pipeline(self.MM(), test_data)
131135

132136
# Expected to fail with error: Warning, unsupported fusing of TOSA Rescale previous operator is of type: Memcpy
133137
@parameterized.expand(MMSingleInput.test_parameters)

0 commit comments

Comments
 (0)