Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
riship committed Jan 13, 2025
1 parent 4a83a6a commit 335d628
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions torch_geometric/utils/rag/feature_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,13 @@ def load_subgraph(

# NOTE: torch_geometric.loader.utils.filter_custom_store can be used
# here if it supported edge features
#node_id = sample.node
sampled_node_ids = sample.node
print("len(sample.node) in load_subgraph=", sample.node)
edge_id = sample.edge
edge_index = torch.stack((sample.row, sample.col), dim=0)
#x = self.x[node_id]
edge_attr = self.edge_attr[edge_id]
return Data(edge_index=edge_index, edge_attr=edge_attr,
edge_idx=edge_id)
edge_idx=edge_id), sampled_node_ids
# return Data(x=x, edge_index=edge_index, edge_attr=edge_attr,
# node_idx=node_id, edge_idx=edge_id)

Expand Down

0 comments on commit 335d628

Please sign in to comment.