It is using outdated numpy and torch syntax, maybe something else.
Replace all dtype=np.long to dtype=np.int64
Replace all dtype=torch.long to dtype=torch.int64
out = np.empty_like(v, dtype=np.long)
out = torch.empty(result_shape, device=v.device, dtype=torch.long)
This code is deprecated.
It is using outdated numpy and torch syntax, maybe something else. Replace all dtype=np.long to dtype=np.int64 Replace all dtype=torch.long to dtype=torch.int64
out = np.empty_like(v, dtype=np.long) out = torch.empty(result_shape, device=v.device, dtype=torch.long)