Skip to content

Commit

Permalink
Correctly instantiate EgoData in SnapDatasets
Browse files Browse the repository at this point in the history
  • Loading branch information
rusty1s committed Oct 5, 2022
1 parent f709376 commit 6ca2332
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions torch_geometric/datasets/snap_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ def read_ego(files, name):
edge_index = torch.stack([row, col], dim=0)

edge_index, _ = coalesce(edge_index, None, N, N)
data = Data(x=x, edge_index=edge_index, circle=circle,
circle_batch=circle_batch)
data = EgoData(x=x, edge_index=edge_index, circle=circle,
circle_batch=circle_batch)

data_list.append(data)

Expand Down

0 comments on commit 6ca2332

Please sign in to comment.