Skip to content

Commit

Permalink
Update jtvae.py (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
mufeili authored Apr 30, 2022
1 parent e98aee5 commit 3b87bd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/dgllife/model/model_zoo/jtvae.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def forward(self, tree_graphs, tree_vec):

# Traverse the tree and predict on children
for eid, p in dfs_order(tree_graphs, root_ids.to(dtype=tree_graphs.idtype)):
eid = eid.to(device)
eid = eid.to(device=device, dtype=tree_graphs.idtype)
p = p.to(device=device, dtype=tree_graphs.idtype)

# Message passing excluding the target
Expand Down

0 comments on commit 3b87bd5

Please sign in to comment.