Skip to content

Commit 5d06d3a

Browse files
justinjfuGoogle-ML-Automation
authored andcommitted
Refactoring: rename dtypes.bit_width -> itemsize_bits
PiperOrigin-RevId: 835341683
1 parent 77d0112 commit 5d06d3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/mosaic/gpu_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1083,7 +1083,7 @@ def kernel(ctx, lhs, rhs, out, rhs_smem):
10831083
m=m, n=n, dtype=utils.dtype_to_ir_type(out_dtype),
10841084
is_signed=True if dtype == jnp.int8 else None,
10851085
)
1086-
layout = fa.WGMMA_LAYOUT_8BIT if dtypes.bit_width(dtype) == 8 else fa.WGMMA_LAYOUT
1086+
layout = fa.WGMMA_LAYOUT_8BIT if dtypes.itemsize_bits(dtype) == 8 else fa.WGMMA_LAYOUT
10871087
lhs_regs = fa.FragmentedArray.load_untiled(
10881088
lhs, layout=layout, optimized=False, is_signed=utils.is_signed(dtype),
10891089
)

0 commit comments

Comments
 (0)