Skip to content

Commit d60e3b9

Browse files
gmagogsfmfacebook-github-bot
authored andcommitted
executorch/backends/apple/coreml/test (#7377)
Summary: Pull Request resolved: #7377 Reviewed By: avikchaudhuri Differential Revision: D67381364
1 parent c337bef commit d60e3b9

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

backends/apple/coreml/test/test_coreml_partitioner.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717

1818
class TestCoreMLPartitioner(unittest.TestCase):
19-
2019
# TODO(T182928844): Delegate dim order op to backend.
2120
edge_compile_config = executorch.exir.EdgeCompileConfig(_skip_dim_order=True)
2221

@@ -34,7 +33,7 @@ def forward(self, a, x, b):
3433
model.eval()
3534

3635
example_inputs = (torch.randn(2, 2), torch.randn(2, 2), torch.randn(2, 2))
37-
exir_program_aten = torch.export.export(model, example_inputs)
36+
exir_program_aten = torch.export.export(model, example_inputs, strict=True)
3837

3938
edge_program_manager = executorch.exir.to_edge(
4039
exir_program_aten, compile_config=self.edge_compile_config
@@ -61,7 +60,7 @@ def test_vit_skip_conv(self):
6160
model.eval()
6261

6362
example_inputs = (torch.randn(1, 3, 224, 224),)
64-
exir_program_aten = torch.export.export(model, example_inputs)
63+
exir_program_aten = torch.export.export(model, example_inputs, strict=True)
6564
edge_program_manager = executorch.exir.to_edge(
6665
exir_program_aten, compile_config=self.edge_compile_config
6766
)
@@ -106,7 +105,7 @@ def forward(self, q, k_val, input_pos):
106105
k_val = torch.randn((1, embedding_dim))
107106
input_pos = torch.tensor([0])
108107
example_inputs = (q, k_val, input_pos)
109-
exir_program_aten = torch.export.export(model, example_inputs)
108+
exir_program_aten = torch.export.export(model, example_inputs, strict=True)
110109

111110
compile_specs = CoreMLBackend.generate_compile_specs(
112111
minimum_deployment_target=ct.target.iOS18

0 commit comments

Comments
 (0)