You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am trying to slice a lazy tensor in this way:
N, M, C=5000, 2000, 10a=LazyTensor(torch.randn(1, N, C))
b=LazyTensor(torch.randn(M, 1, C))
c= (a-b).norm2()
print(c.shape) # this gives [M, N]d=c[10:20]
print(d.shape) # this gives an error, but I hope to get the shape [M, 10]
However, I encountered an error saying "Starting index is out of bounds" with ndim is actually 1.
How can I correctly slice the tensor as the way I expect?
Thank you!
The text was updated successfully, but these errors were encountered:
Hi, I am trying to slice a lazy tensor in this way:
However, I encountered an error saying "Starting index is out of bounds" with ndim is actually 1.
How can I correctly slice the tensor as the way I expect?
Thank you!
The text was updated successfully, but these errors were encountered: