Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rusty1s committed Oct 25, 2022
1 parent 3b5edb3 commit d3b278a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch_geometric/transforms/virtual_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def __call__(self, data: Data) -> Data:
if key == 'edge_weight':
size[dim] = 2 * num_nodes
fill_value = 1.
if key == 'batch':
elif key == 'batch':
size[dim] = 1
fill_value = int(value[0])
elif old_data.is_edge_attr(key):
Expand Down

0 comments on commit d3b278a

Please sign in to comment.