Skip to content

Commit bd34790

Browse files
committed
adding missing arg for floatx
1 parent 6da8f15 commit bd34790

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

torchao/dtypes/affine_quantized_tensor.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,9 @@ def from_hp_to_fpx(
431431
# Note: these ops are hardcoded to have per axis quantization (axis=1) right now
432432
scale = choose_qparams_affine_floatx(input_float, ebits, mbits)
433433
floatx_unpacked = quantize_affine_floatx(input_float, scale, ebits, mbits)
434-
floatx_packed, scale, _ = _layout.post_process(floatx_unpacked, scale, None)
434+
floatx_packed, scale, _ = _layout.post_process(
435+
floatx_unpacked, scale, None, block_size
436+
)
435437

436438
tensor_impl_ctr = get_tensor_impl_constructor(type(_layout))
437439
tensor_impl = tensor_impl_ctr(floatx_packed, scale, None, _layout)

0 commit comments

Comments
 (0)