Skip to content

Commit 73580a3

Browse files
carmoccaSkafteNickirohitgr7
authored
Apply suggestions from code review
Co-authored-by: Nicki Skafte Detlefsen <[email protected]> Co-authored-by: Rohit Gupta <[email protected]>
1 parent 754da5b commit 73580a3

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

pytorch_lightning/callbacks/gpu_stats_monitor.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
class GPUStatsMonitor(Callback):
3939
r"""
4040
.. deprecated:: v1.5
41-
The `GPUStatsMonitor` callback was deprecated in v1.5 and will be removed in v1.7. "
42-
"Please use the `DeviceStatsMonitor` callback instead.
41+
The `GPUStatsMonitor` callback was deprecated in v1.5 and will be removed in v1.7.
42+
Please use the `DeviceStatsMonitor` callback instead.
4343
4444
Automatically monitors and logs GPU stats during training stage. ``GPUStatsMonitor``
4545
is a callback and in order to use it you need to assign a logger in the ``Trainer``.
@@ -96,8 +96,8 @@ def __init__(
9696
super().__init__()
9797

9898
rank_zero_deprecation(
99-
"The `GPUStatsMonitor` callback was deprecated in v1.5 and will be removed in v1.7. "
100-
"Please use the `DeviceStatsMonitor` callback instead."
99+
"The `GPUStatsMonitor` callback was deprecated in v1.5 and will be removed in v1.7."
100+
" Please use the `DeviceStatsMonitor` callback instead."
101101
)
102102

103103
if shutil.which("nvidia-smi") is None:

pytorch_lightning/callbacks/xla_stats_monitor.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
class XLAStatsMonitor(Callback):
3232
r"""
3333
.. deprecated:: v1.5
34-
The `XLAStatsMonitor` callback was deprecated in v1.5 and will be removed in v1.7. "
35-
"Please use the `DeviceStatsMonitor` callback instead.
34+
The `XLAStatsMonitor` callback was deprecated in v1.5 and will be removed in v1.7.
35+
Please use the `DeviceStatsMonitor` callback instead.
3636
3737
Automatically monitors and logs XLA stats during training stage. ``XLAStatsMonitor`` is a callback and in
3838
order to use it you need to assign a logger in the ``Trainer``.
@@ -57,8 +57,8 @@ def __init__(self, verbose: bool = True) -> None:
5757
super().__init__()
5858

5959
rank_zero_deprecation(
60-
"The `XLAStatsMonitor` callback was deprecated in v1.5 and will be removed in v1.7. "
61-
"Please use the `DeviceStatsMonitor` callback instead."
60+
"The `XLAStatsMonitor` callback was deprecated in v1.5 and will be removed in v1.7."
61+
" Please use the `DeviceStatsMonitor` callback instead."
6262
)
6363

6464
if not _TPU_AVAILABLE:

0 commit comments

Comments
 (0)