Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rusty1s committed May 11, 2022
1 parent 534c44c commit cb9c230
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch_geometric/nn/models/mlp.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def forward(self, x: Tensor, return_emb: bool = False) -> Tensor:
x = F.dropout(x, p=self.dropout, training=self.training)
x = lin.forward(x)

return x, emb if return_emb else x
return (x, emb) if return_emb else x

def __repr__(self) -> str:
return f'{self.__class__.__name__}({str(self.channel_list)[1:-1]})'

0 comments on commit cb9c230

Please sign in to comment.