Skip to content

Commit

Permalink
Merge pull request graphnet-team#607 from AMHermansen/fix-tito
Browse files Browse the repository at this point in the history
Fix tito
  • Loading branch information
AMHermansen authored Oct 24, 2023
2 parents 8b9c353 + 111702d commit d2798fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions examples/04_training/02_train_tito_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,7 @@ def main(

# Save model config and state dict - Version safe save method.
model.save_state_dict(f"{path}/state_dict.pth")
# model.save_config(f"{path}/model_config.yml")
# Pending https://github.com/graphnet-team/graphnet/issues/606
model.save_config(f"{path}/model_config.yml")


if __name__ == "__main__":
Expand Down
4 changes: 2 additions & 2 deletions src/graphnet/models/gnn/dynedge_kaggle_tito.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class DynEdgeTITO(GNN):
def __init__(
self,
nb_inputs: int,
features_subset: slice = slice(0, 4),
features_subset: List[int] = None,
dyntrans_layer_sizes: Optional[List[Tuple[int, ...]]] = None,
global_pooling_schemes: List[str] = ["max"],
):
Expand Down Expand Up @@ -120,7 +120,7 @@ def __init__(
self._activation = torch.nn.LeakyReLU()
self._nb_inputs = nb_inputs
self._nb_global_variables = 5 + nb_inputs
self._features_subset = features_subset
self._features_subset = features_subset or [0, 1, 2, 3]
self._construct_layers()

def _construct_layers(self) -> None:
Expand Down

0 comments on commit d2798fe

Please sign in to comment.