Skip to content

[Core ML] Update Partitioner Test as Torch.Any Supported #6361

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backends/apple/coreml/scripts/install_requirements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ rm -rf "$COREML_DIR_PATH/third-party"
mkdir "$COREML_DIR_PATH/third-party"

echo "${green}ExecuTorch: Cloning coremltools."
git clone --depth 1 --branch 8.0 "https://github.com/apple/coremltools.git" $COREMLTOOLS_DIR_PATH
git clone --depth 1 --branch 8.1 "https://github.com/apple/coremltools.git" $COREMLTOOLS_DIR_PATH
cd $COREMLTOOLS_DIR_PATH

STATUS=$?
Expand Down
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
Loading