Skip to content

Commit

Permalink
remvoe redundant if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Padarn committed Aug 7, 2022
1 parent 44a231f commit 21020b2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions torch_geometric/nn/conv/gin_conv.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,6 @@ def __init__(self, nn: torch.nn.Module, eps: float = 0.,
if edge_dim is not None:
if isinstance(self.nn, torch.nn.Sequential):
nn = self.nn[0]
else:
nn = self.nn
if hasattr(nn, 'in_features'):
in_channels = nn.in_features
elif hasattr(nn, 'in_channels'):
Expand Down

0 comments on commit 21020b2

Please sign in to comment.