Skip to content

Commit

Permalink
as torch.any gets supported in coreml, its no longer skipped in parti…
Browse files Browse the repository at this point in the history
…tioner
  • Loading branch information
yifan_shen3 committed Oct 18, 2024
1 parent b1c94ab commit 666ac62
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions backends/apple/coreml/test/test_coreml_partitioner.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,23 +71,15 @@ def test_vit_skip_conv(self):
)
)

conv_block = ["aten.convolution.default", "executorch_call_delegate"]
safe_softmax_block = [
"getitem",
"getitem",
"getitem",
"getitem",
"aten.any.dim",
"executorch_call_delegate",
]
final_block = ["getitem"]
total = conv_block + 12 * safe_softmax_block + final_block

assert [
node.target.__name__
for node in delegated_program_manager.exported_program().graph.nodes
if node.op == "call_function"
] == total
] == [
"aten.convolution.default",
"executorch_call_delegate",
"getitem",
]

def test_buffer(self):
embedding_dim = 3
Expand Down

0 comments on commit 666ac62

Please sign in to comment.