Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda authored and roshikouhai committed Jul 29, 2021
1 parent ae89e2d commit 390c2c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pytorch_lightning/core/lightning.py
Original file line number Diff line number Diff line change
Expand Up @@ -1961,7 +1961,7 @@ def model_size(self) -> float:
"""
rank_zero_deprecation(
"The `LightningModule.model_size` property was deprecated in v1.5 and will be removed in v1.7. Please "
"use the get_model_size_mb method under utilities/memory.py"
"use the `utilities.memory.get_model_size_mb` method under utilities/memory.py"
)

tmp_name = f"{uuid.uuid4().hex}.pt"
Expand Down
2 changes: 1 addition & 1 deletion tests/deprecated_api/test_remove_1-7.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ def test_v1_7_0_deprecated_model_size():
model = BoringModel()
with pytest.deprecated_call(
match="The `LightningModule.model_size` property was deprecated in v1.5 and will be removed in v1.7. "
"Please use the get_model_size_mb method under utilities/memory.py"
"Please use the `utilities.memory.get_model_size_mb` method under utilities/memory.py"
):
_ = model.model_size

0 comments on commit 390c2c1

Please sign in to comment.