Skip to content

Commit

Permalink
Update Deprecation Message to utilities/memory.py
Browse files Browse the repository at this point in the history
  • Loading branch information
roshikouhai committed Jul 28, 2021
1 parent c4ace84 commit ec3240b
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 @@ -1964,7 +1964,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 method under utilities/model_helpers.py'
'use the 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 method under utilities/model_helpers.py"
"Please use the get_model_size_mb method under utilities/memory.py"
):
_ = model.model_size

0 comments on commit ec3240b

Please sign in to comment.