Skip to content

Commit

Permalink
Fix BitcoinOTC processing (#6470)
Browse files Browse the repository at this point in the history
  • Loading branch information
rusty1s authored Jan 19, 2023
1 parent 5c3ad1e commit 6fcf347
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch_geometric/datasets/bitcoin_otc.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def process(self):
edge_index = edge_index.t().contiguous()
num_nodes = edge_index.max().item() + 1

edge_attr = [float(line[2]) for line in data]
edge_attr = [int(line[2]) for line in data]
edge_attr = torch.tensor(edge_attr, dtype=torch.long)

stamps = [int(float(line[3])) for line in data]
Expand Down

0 comments on commit 6fcf347

Please sign in to comment.