[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
f036ee0022
commit
7d3de8b317
1 changed files with 1 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue