Skip to content

Commit

Permalink
Update torch_geometric/datasets/linkx_dataset.py
Browse files Browse the repository at this point in the history
Co-authored-by: Matthias Fey <[email protected]>
  • Loading branch information
Padarn and rusty1s authored May 2, 2022
1 parent e4e5a46 commit a0c12cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch_geometric/datasets/linkx_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def process(self):
x = torch.cat(xs, dim=-1)
else:
if 'node_feat' in mat:
x = torch.tensor(mat['node_feat'])
x = torch.from_numpy(mat['node_feat']).to(torch.float)
elif 'features' in mat:
x = torch.tensor(mat['features'].todense())
else:
Expand Down

0 comments on commit a0c12cc

Please sign in to comment.