[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2026-05-07 01:14:31 +00:00
commit 7d3de8b317

View file

@ -126,9 +126,7 @@ def detect_hardware() -> DeviceType:
if _hip_ver is not None or "rocm" in torch.__version__.lower():
IS_ROCM = True
_hip_label = _hip_ver or torch.__version__
print(
f"Hardware detected: ROCm (HIP {_hip_label}) -- {device_name}"
)
print(f"Hardware detected: ROCm (HIP {_hip_label}) -- {device_name}")
else:
print(f"Hardware detected: CUDA -- {device_name}")
return DEVICE