Skip to content

Commit

Permalink
Fix: LayerConfig.inner_dim default handling (#8486)
Browse files Browse the repository at this point in the history
  • Loading branch information
RemyLau authored Nov 30, 2023
1 parent 8833d0d commit f24d3a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch_geometric/graphgym/models/layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ class MLP(torch.nn.Module):
"""
def __init__(self, layer_config: LayerConfig, **kwargs):
super().__init__()
if layer_config.dim_inner:
if layer_config.dim_inner is None:
dim_inner = layer_config.dim_in
else:
dim_inner = layer_config.dim_inner
Expand Down

0 comments on commit f24d3a0

Please sign in to comment.