Skip to content

Commit 7139466

Browse files
committed
change transpose impl
1 parent cba6848 commit 7139466

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchao/dtypes/affine_quantized_tensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ def __torch_dispatch__(cls, func, types, args, kwargs):
603603
elif func is aten.t.default:
604604
tensor = args[0]
605605
new = tensor.__class__(
606-
tensor.int_data.view(tensor.shape[::-1]), tensor.scale, tensor.zero_point, tensor.layout_type
606+
tensor.int_data.t(), tensor.scale, tensor.zero_point, tensor.layout_type
607607
)
608608
return return_and_correct_aliasing(func, args, kwargs, new)
609609

0 commit comments

Comments
 (0)