Skip to content

Commit

Permalink
Update transformer_conv.py (#3538)
Browse files Browse the repository at this point in the history
Initialise all attributes in layer for torch.jit.script compatability.
  • Loading branch information
RobMcH committed Nov 20, 2021
1 parent afc66cb commit 70eb788
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions torch_geometric/nn/conv/transformer_conv.py
Expand Up @@ -110,6 +110,7 @@ def __init__(
self.concat = concat
self.dropout = dropout
self.edge_dim = edge_dim
self._alpha = None

if isinstance(in_channels, int):
in_channels = (in_channels, in_channels)
Expand Down

0 comments on commit 70eb788

Please sign in to comment.