Skip to content

[Relax] Tensor.split with uneven tensors#17756

Closed
hugolatendresse wants to merge 11 commits intoapache:mainfrom
hugolatendresse:split2
Closed

[Relax] Tensor.split with uneven tensors#17756
hugolatendresse wants to merge 11 commits intoapache:mainfrom
hugolatendresse:split2

Conversation

@hugolatendresse
Copy link
Contributor

We used to have an assertion that when using torch.split, the dimension to be split must be an multiple of the split size. This is not required in pytorch: the last tensors will simply be smaller. This PR allows that capability.

@hugolatendresse hugolatendresse deleted the split2 branch April 19, 2025 15:30
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.

1 participant