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
Copy link
Collaborator

CI failed, but looks like due to torch 2.8 breaking changes

@YifanShenSZ
Copy link
Collaborator

@metascroy please rebase on top of latest main then let's try CI again

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