-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Open
Labels
module: nestedtensorNestedTensor tag see issue #25032NestedTensor tag see issue #25032triagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate moduleThis issue has been looked at a team member, and triaged and prioritized into an appropriate module
Description
🚀 The feature, motivation and pitch
In many cases several of the nested tensor dimensions are constant, and therefore in principle should allow slicing
import torch
a = torch.rand(5,5,5)
b = torch.rand(5,5,10)
c = torch.rand(5,5,15)
d= torch.nested.nested_tensor([a,b,c])
d[:2]
Will currently return the following
NotImplementedError: Could not run 'aten::slice.Tensor' with arguments from the 'NestedTensorCPU' backend.
May be useful to be able to mark which dims are and will remain constant?
Alternatives
No response
Additional context
No response
rees-c, emptydiagram, nairbv, aploium, coltonflowers1 and 6 more
Metadata
Metadata
Assignees
Labels
module: nestedtensorNestedTensor tag see issue #25032NestedTensor tag see issue #25032triagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate moduleThis issue has been looked at a team member, and triaged and prioritized into an appropriate module