Skip to content

Commit 790debc

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 7cc0749 commit 790debc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/tests_pytorch/models/test_hparams.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,6 @@ def __init__(self, learning_rate=1e-3, optimizer="adam"):
453453
assert pl_instance.hparams == {"optimizer": "sgd"}
454454

455455

456-
457456
@pytest.mark.parametrize("base_class", [HyperparametersMixin, LightningModule, LightningDataModule])
458457
def test_save_hyperparameters_ignore_under_composition(base_class):
459458
"""Test that in a composed system, hyperparameter saving skips ignored fields from nested modules."""
@@ -475,6 +474,7 @@ def __init__(self, run_id="abc123", seed=42):
475474
pipeline = PipelineWrapper()
476475
assert pipeline.parent_module.child.hparams == {"init_method": "xavier", "batch_size": 64, "optimizer": "adam"}
477476

477+
478478
class LocalVariableModelSuperLast(BoringModel):
479479
"""This model has the super().__init__() call at the end."""
480480

0 commit comments

Comments
 (0)