[AMD][Kernel][BugFix] fix test_rocm_compressed_tensors_w8a8 for rocm (#19509)
Signed-off-by: Randall Smith <Randall.Smith@amd.com>
This commit is contained in:
@@ -144,10 +144,10 @@ def triton_scaled_mm(input: torch.Tensor,
|
||||
scale_b = scale_b.reshape(-1, 1) if scale_b.dim() <= 1 else scale_b
|
||||
|
||||
assert scale_a.dtype == scale_b.dtype and scale_a.is_floating_point()
|
||||
assert scale_a.shape == torch.Size([1, 1]) or scale_a.shape == torch.Size(
|
||||
[M, 1])
|
||||
assert scale_b.shape == torch.Size([1, 1]) or scale_b.shape == torch.Size(
|
||||
[N, 1])
|
||||
assert scale_a.shape[1] == 1 and (scale_a.shape[0] == 1
|
||||
or scale_a.shape[0] == M)
|
||||
assert scale_b.shape[1] == 1 and (scale_b.shape[0] == 1
|
||||
or scale_b.shape[0] == N)
|
||||
assert out_dtype.is_floating_point
|
||||
assert bias is None or bias.is_floating_point()
|
||||
assert is_weak_contiguous(input)
|
||||
|
||||
Reference in New Issue
Block a user