Skip to content
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

Slice with None at dim should add a new dimension #188

Open
parthchadha opened this issue Sep 6, 2024 · 1 comment
Open

Slice with None at dim should add a new dimension #188

parthchadha opened this issue Sep 6, 2024 · 1 comment
Assignees
Milestone

Comments

@parthchadha
Copy link
Collaborator

>>> a = torch.ones(3,3,3)
>>> a[:,:,:,None].shape
torch.Size([3, 3, 3, 1])

Tripy fails with ^ usage.

@pranavm-nvidia pranavm-nvidia self-assigned this Sep 9, 2024
@yizhuoz004 yizhuoz004 added this to the SAM2 milestone Sep 9, 2024
@pranavm-nvidia
Copy link
Collaborator

I'm wondering now whether we actually want this or whether we should just use unsqueeze in these cases.

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

No branches or pull requests

3 participants