Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pytorch_neat/recurrent_net.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def dense_from_coo(shape, conns, dtype=torch.float64):
idxs, weights = conns
if len(idxs) == 0:
return mat
rows, cols = np.array(idxs).transpose()
rows, cols = np.array(idxs, dtype=np.int64).transpose()
mat[torch.tensor(rows), torch.tensor(cols)] = torch.tensor(
weights, dtype=dtype)
return mat
Expand Down