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
Hey supermax, I had the same issue and I solved it by instead changing mat[torch.tensor(rows), torch.tensor(cols)] to mat[torch.LongTensor(rows), torch.LongTensor(cols)] idk if this would alleviate the differences in numpy versions or not
I am trying to run the examples.simple.main.py and I encounter the following exception:
RuntimeError: tensors used as indices must be long or byte tensors
I have the following packages installed with pip3 in python3.6:
This error occurs within pytorch_neat.recurrent_net in the dense_from_coo function:
The problem is that np.array is assuming int32 for the indexes, but torch wants int64.
Simple solution:
The difference may be from the differing numpy versions, but I think this change makes sense regardless for torch tensor indexing.
The text was updated successfully, but these errors were encountered: