Skip to content

Commit be37440

Browse files
committed
Fix models with no hypers
1 parent 2874fa9 commit be37440

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/metatrain/utils/testing/input.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@ def restart(
182182
"""
183183
if not self.supports_restart:
184184
pytest.skip("The architecture does not support restart")
185-
if len(default_hypers) == 0:
186-
pytest.skip("The architecture does not have any hyperparameters")
185+
if len(default_hypers["model"]) == 0:
186+
pytest.skip("The model does not have any hyperparameters")
187187

188188
model = self.model_cls(minimal_model_hypers, dataset_info)
189189

0 commit comments

Comments
 (0)