[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
8028c52600
commit
8df5d7d176
1 changed files with 3 additions and 1 deletions
|
|
@ -103,7 +103,9 @@ def detect_hardware() -> DeviceType:
|
|||
# DeviceType stays CUDA since torch.cuda.* works on ROCm via HIP.
|
||||
if getattr(torch.version, "hip", None) is not None:
|
||||
IS_ROCM = True
|
||||
print(f"Hardware detected: ROCm (HIP {torch.version.hip}) -- {device_name}")
|
||||
print(
|
||||
f"Hardware detected: ROCm (HIP {torch.version.hip}) -- {device_name}"
|
||||
)
|
||||
else:
|
||||
print(f"Hardware detected: CUDA -- {device_name}")
|
||||
return DEVICE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue