nestedtensor
nestedtensor copied to clipboard
[DESIGN] view_as_nested_tensor operation
Our old version of as_nested_tensor allowed users to create NestedTensor as a container that wraps lists of Tensors and allows modifications to trickle down to the constituents. However, this was not in line with torch.as_tensor. Should we introduce a separate abstraction to introduce this view operation?