[Bugfix][AMD] Update torch_bindings so that scaled_fp4_quant isn't build on ROCm (#13235)

This commit is contained in:
Sage Moore
2025-02-14 20:30:42 -08:00
committed by GitHub
parent 0c73026844
commit c9f9d5b397
3 changed files with 12 additions and 10 deletions
+1
View File
@@ -774,6 +774,7 @@ def scaled_fp4_quant(
two values are packed into a uint8 and float8_e4m3 scaling factors
in the sizzled layout.
"""
assert not current_platform.is_rocm()
assert input.ndim >= 1, (
f'input.ndim needs to be >= 1, but got {input.ndim}.')
other_dims = 1 if input.ndim == 1 else -1