Skip to content

Commit 427641c

Browse files
kirklandsignfacebook-github-bot
authored andcommitted
Fix cat tests (#1086)
Summary: Pull Request resolved: #1086 Reviewed By: mcr229 Differential Revision: D50504935 fbshipit-source-id: 6b541d0558f1cb1ea99893a3cfa96ba35161c5d8
1 parent c6c2ea9 commit 427641c

File tree

1 file changed

+12
-11
lines changed
  • backends/xnnpack/test/ops

1 file changed

+12
-11
lines changed

backends/xnnpack/test/ops/cat.py

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,18 @@ def forward(self, x, y):
2121
def test_fp32_cat(self):
2222
inputs = (torch.ones(1, 2, 3), torch.ones(3, 2, 3))
2323
(
24-
Tester(self.Cat(), inputs).export()
25-
# .check_count({"torch.ops.aten.cat": 1})
26-
# .to_edge()
27-
# .check_count({"executorch_exir_dialects_edge__ops_aten_cat": 1})
28-
# .partition()
29-
# .check_count({"torch.ops.executorch_call_delegate": 1})
30-
# .check_not(["executorch_exir_dialects_edge__ops_aten_cat"])
31-
# .to_executorch()
32-
# .serialize()
33-
# .run_method()
34-
# .compare_outputs()
24+
Tester(self.Cat(), inputs)
25+
.export()
26+
.check_count({"torch.ops.aten.cat": 1})
27+
.to_edge()
28+
.check_count({"executorch_exir_dialects_edge__ops_aten_cat": 1})
29+
.partition()
30+
.check_count({"torch.ops.executorch_call_delegate": 1})
31+
.check_not(["executorch_exir_dialects_edge__ops_aten_cat"])
32+
.to_executorch()
33+
.serialize()
34+
.run_method()
35+
.compare_outputs()
3536
)
3637

3738
class CatNegativeDim(torch.nn.Module):

0 commit comments

Comments
 (0)