def test_save_no_parameters(model):
    """Test that calling save_hyperparameters works if no parameters need saving."""
    assert model.hparams == {}
    assert model._hparams_initial == {}
Test that calling save_hyperparameters works if no parameters need saving.
tests/tests_pytorch/models/test_hparams.py