Skip to content

Commit

Permalink
fixed integer casting bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanqing-wang authored Jul 11, 2022
1 parent 83f14e6 commit 8081037
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion espaloma/graphs/utils/read_heterogeneous_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def from_homogeneous_and_mol(g, offmol):
)

import dgl
hg = dgl.heterograph({key: list(value) for key, value in hg.items()})
hg = dgl.heterograph({key: value.astype(np.int32).tolist() for key, value in hg.items()})

hg.nodes["n1"].data["h0"] = g.ndata["h0"]

Expand Down

0 comments on commit 8081037

Please sign in to comment.