Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
riship committed Jan 11, 2025
1 parent 644bcc3 commit 44a17f3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion torch_geometric/data/large_graph_indexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,9 +539,12 @@ def to_data(self, node_feature_name: str,
node_id = torch.LongTensor(range(len(x)))
print("self.get_edge_features(EDGE_INDEX)[:10]=",
self.get_edge_features(EDGE_INDEX)[:10])
print("self.get_edge_features(EDGE_INDEX)[-10:]=",
self.get_edge_features(EDGE_INDEX)[-10:])
edge_index = torch.t(
torch.LongTensor(self.get_edge_features(EDGE_INDEX)))
print("edge_index tensor of full graph=", edge_index[:, :10])
print("edge_index tensor of full graph[:10]=", edge_index[:, :10])
print("edge_index tensor of full graph[-10:]=", edge_index[:, -10:])

edge_attr = (self.get_edge_features(edge_feature_name)
if edge_feature_name is not None else None)
Expand Down

0 comments on commit 44a17f3

Please sign in to comment.