Skip to content

Commit 63a0f70

Browse files
authored
empty str
1 parent 4abcd13 commit 63a0f70

File tree

1 file changed

+1
-1
lines changed
  • src/lightning/pytorch/accelerators

1 file changed

+1
-1
lines changed

src/lightning/pytorch/accelerators/cuda.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def register_accelerators(cls, accelerator_registry: _AcceleratorRegistry) -> No
117117
@override
118118
def device_name(cls, device: Optional[_DEVICE] = None) -> str:
119119
if not cls.is_available():
120-
return "False"
120+
return ""
121121
return torch.cuda.get_device_name(device)
122122

123123

0 commit comments

Comments
 (0)