Navigation Menu

Skip to content

Commit

Permalink
fix idx numerical issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rusty1s committed Oct 14, 2020
1 parent 68ca38e commit c56a50e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch_geometric/datasets/snap_dataset.py
Expand Up @@ -39,7 +39,7 @@ def read_ego(files, name):
feat_file = files[i + 3]
featnames_file = files[i + 4]

x = pandas.read_csv(feat_file, sep=' ', header=None, dtype=np.float32)
x = pandas.read_csv(feat_file, sep=' ', header=None, dtype=np.int64)
x = torch.from_numpy(x.values)

idx, x = x[:, 0].to(torch.long), x[:, 1:].to(torch.float)
Expand Down

0 comments on commit c56a50e

Please sign in to comment.