Skip to content

Commit 53a240a

Browse files
committed
concat edge attr for undirected graph
1 parent 945ef7c commit 53a240a

File tree

1 file changed

+1
-1
lines changed
  • chebai_graph/preprocessing/datasets

1 file changed

+1
-1
lines changed

chebai_graph/preprocessing/datasets/chebi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def _merge_props_into_base(self, row):
168168
return GeomData(
169169
x=x,
170170
edge_index=geom_data.edge_index,
171-
edge_attr=edge_attr,
171+
edge_attr=torch.cat([edge_attr, edge_attr], dim=0),
172172
molecule_attr=molecule_attr,
173173
)
174174

0 commit comments

Comments
 (0)