Skip to content

Commit

Permalink
Checking self.normalize once
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincenzooo authored and Vincenzooo committed Dec 11, 2024
1 parent 8bbdbc4 commit d22db1d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion torch_geometric/nn/conv/gat_conv.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,6 @@ def forward( # noqa: F811
"The usage of 'normalize' is not supported "
"for bipartite message passing.")

if self.normalize:
if isinstance(edge_index, Tensor):
edge_index, edge_attr = remove_self_loops(
edge_index, edge_attr)
Expand Down
1 change: 0 additions & 1 deletion torch_geometric/nn/conv/gatv2_conv.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,6 @@ def forward( # noqa: F811
"The usage of 'normalize' is not supported "
"for bipartite message passing.")

if self.normalize:
if isinstance(edge_index, Tensor):
edge_index, edge_attr = remove_self_loops(
edge_index, edge_attr)
Expand Down

0 comments on commit d22db1d

Please sign in to comment.