Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Rohit Gupta <[email protected]>
  • Loading branch information
justusschock and rohitgr7 authored Jul 19, 2022
1 parent 7bf9f2d commit 8124087
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/pytorch_lightning/accelerators/gpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class GPUAccelerator(CUDAAccelerator):

def __init__(self) -> None:
rank_zero_deprecation(
"The GPUAccelerator has been renamed to CUDAAccelerator and will be removed in v1.9."
" Please use the CUDAAccelerator instead!"
"The `GPUAccelerator` has been renamed to `CUDAAccelerator` and will be removed in v1.9."
" Please use the `CUDAAccelerator` instead!"
)
super().__init__()
4 changes: 2 additions & 2 deletions tests/tests_pytorch/deprecated_api/test_remove_1-9.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,8 @@ def test_pytorch_profiler_register_record_function_deprecation_warning():
def test_gpu_accelerator_deprecation_warning():
with pytest.deprecated_call(
match=(
"The GPUAccelerator has been renamed to CUDAAccelerator and will be removed in v1.9."
+ " Please use the CUDAAccelerator instead!"
"The `GPUAccelerator` has been renamed to `CUDAAccelerator` and will be removed in v1.9."
+ " Please use the `CUDAAccelerator` instead!"
)
):
GPUAccelerator()

0 comments on commit 8124087

Please sign in to comment.