Replace {func} with mkdocs style links (#18610)

Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
This commit is contained in:
Harry Mellor
2025-05-23 05:51:38 -07:00
committed by GitHub
parent 38a95cb4a8
commit 2edb533af2
5 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -157,7 +157,7 @@ class Platform:
return self._enum == PlatformEnum.OOT
def is_cuda_alike(self) -> bool:
"""Stateless version of {func}`torch.cuda.is_available`."""
"""Stateless version of [torch.cuda.is_available][]."""
return self._enum in (PlatformEnum.CUDA, PlatformEnum.ROCM)
def is_sleep_mode_available(self) -> bool:
@@ -194,7 +194,7 @@ class Platform:
cls,
device_id: int = 0,
) -> Optional[DeviceCapability]:
"""Stateless version of {func}`torch.cuda.get_device_capability`."""
"""Stateless version of [torch.cuda.get_device_capability][]."""
return None
@classmethod