Skip to content

Conversation

metascroy
Copy link
Contributor

This adds coremltools support for split_copy, the copy variant of split. Many view ops in coremltools already register the copy variant as an alias, e.g.,

view: https://github.com/apple/coremltools/blob/main/coremltools/converters/mil/frontend/torch/ops.py#L2316
permute: https://github.com/apple/coremltools/blob/main/coremltools/converters/mil/frontend/torch/ops.py#L1011

But it looks like for split this was missed.

Similar PR for transpose_copy: #2556

@metascroy
Copy link
Contributor Author

cc @YifanShenSZ

@TobyRoseman
Copy link
Collaborator

Thanks @metascroy for the pull request. Can you add a unit test?

@YifanShenSZ
Copy link
Collaborator

YifanShenSZ commented Aug 11, 2025

CI 🔴 https://gitlab.com/coremltools1/coremltools/-/commit/35edb4d17ab9eb1cd95f09f3c3dba7db9e157f75/pipelines

because we support torch up to 2.7.1 😮‍💨 please rebase on top of latest main to pick up #2591

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants