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
import torch
a = torch.randn(25, 1, 8).cuda()
b = torch.randn(25, 1, 9).cuda()
print('This one works')
print(a.topk(3, dim=0)[1])
print('This one crashes')
print(b.topk(3, dim=0)[1])
Expect two small tensors of small integers to be printed. Instead, only the first case works. In the second case, you get a series of failed assertions starting with this: