Skip to content

Conversation

@metascroy
Copy link
Contributor

This adds coremltools support for unbind_copy, the copy variant of unbind. 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 unbind this was missed.

Similar PR for transpose_copy: #2556

@metascroy
Copy link
Contributor Author

cc @YifanShenSZ

YifanShenSZ
YifanShenSZ previously approved these changes Jul 18, 2025
@YifanShenSZ YifanShenSZ dismissed their stale review July 18, 2025 21:21

We might need to block merge until our release is done, @TobyRoseman to confirm

@bzcheeseman
Copy link
Collaborator

Thanks again, Scott! As Yifan said, we do have to block until the release is done. I've kicked off CI for both PRs and I'll add an update when they pass

@bzcheeseman
Copy link
Collaborator

CI passed, once @TobyRoseman has finished the release we can land this.

@TobyRoseman
Copy link
Collaborator

Please rebase this change on top of tip of main.

@metascroy
Copy link
Contributor Author

Please rebase this change on top of tip of main.

Done

@TobyRoseman
Copy link
Collaborator

@YifanShenSZ YifanShenSZ merged commit eef9e56 into apple:main Aug 11, 2025
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.

4 participants