File tree 2 files changed +8
-8
lines changed
pytorch_lightning/callbacks
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 38
38
class GPUStatsMonitor (Callback ):
39
39
r"""
40
40
.. 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.
43
43
44
44
Automatically monitors and logs GPU stats during training stage. ``GPUStatsMonitor``
45
45
is a callback and in order to use it you need to assign a logger in the ``Trainer``.
@@ -96,8 +96,8 @@ def __init__(
96
96
super ().__init__ ()
97
97
98
98
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."
101
101
)
102
102
103
103
if shutil .which ("nvidia-smi" ) is None :
Original file line number Diff line number Diff line change 31
31
class XLAStatsMonitor (Callback ):
32
32
r"""
33
33
.. 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.
36
36
37
37
Automatically monitors and logs XLA stats during training stage. ``XLAStatsMonitor`` is a callback and in
38
38
order to use it you need to assign a logger in the ``Trainer``.
@@ -57,8 +57,8 @@ def __init__(self, verbose: bool = True) -> None:
57
57
super ().__init__ ()
58
58
59
59
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."
62
62
)
63
63
64
64
if not _TPU_AVAILABLE :
You can’t perform that action at this time.
0 commit comments