Skip to content

Commit 012f938

Browse files
committed
Refactor is_ROCm_mx_supported function for improved readability
- Reformatted the return statement to enhance clarity and maintainability of the code.
1 parent 979893a commit 012f938

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

torchao/utils.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -720,8 +720,10 @@ def is_ROCm_mx_supported() -> bool:
720720
2. gfx950 GPU (MI350)
721721
3. ROCm 7.0
722722
"""
723-
return all([
724-
is_ROCM(),
725-
is_MI350(),
726-
torch.version.hip is not None and torch.version.hip.startswith("7.0")
727-
])
723+
return all(
724+
[
725+
is_ROCM(),
726+
is_MI350(),
727+
torch.version.hip is not None and torch.version.hip.startswith("7.0"),
728+
]
729+
)

0 commit comments

Comments
 (0)