Skip to content

Commit 94dee9c

Browse files
Fix AQT test (#3208)
fix AQT test
1 parent e30012f commit 94dee9c

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

torchao/dtypes/affine_quantized_tensor_ops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ def _(func, types, args, kwargs):
462462
getattr(self, tensor_name).copy_(getattr(src, tensor_name))
463463
return
464464
raise ValueError(
465-
f"Not supported args for copy_ due to metadata mistach: {args[0], args[1]}"
465+
f"Not supported args for copy_ due to metadata mismatch: {args[0], args[1]}"
466466
)
467467

468468

torchao/dtypes/floatx/cutlass_semi_sparse_layout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def __torch_dispatch__(cls, func, types, args, kwargs):
9898
getattr(self, tensor_name).copy_(getattr(src, tensor_name))
9999
return
100100
raise ValueError(
101-
f"Not supported args for copy_ due to metadata mistach: {args[0], args[1]}"
101+
f"Not supported args for copy_ due to metadata mismatch: {args[0], args[1]}"
102102
)
103103
elif func is aten.clone.default:
104104
return return_and_correct_aliasing(

torchao/dtypes/uintx/cutlass_int4_packed_layout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def __torch_dispatch__(cls, func, types, args, kwargs):
102102
getattr(self, tensor_name).copy_(getattr(src, tensor_name))
103103
return
104104
raise ValueError(
105-
f"Not supported args for copy_ due to metadata mistach: {args[0], args[1]}"
105+
f"Not supported args for copy_ due to metadata mismatch: {args[0], args[1]}"
106106
)
107107

108108
raise NotImplementedError(

torchao/dtypes/uintx/gemlite_layout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ def __torch_dispatch__(cls, func, types, args, kwargs):
406406
self.gemlite_kwargs[key] = src.gemlite_kwargs[key]
407407
return
408408
raise ValueError(
409-
f"Not supported args for copy_ due to metadata mistach: {args[0], args[1]}"
409+
f"Not supported args for copy_ due to metadata mismatch: {args[0], args[1]}"
410410
)
411411

412412
raise NotImplementedError(

torchao/dtypes/uintx/plain_layout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def __torch_dispatch__(cls, func, types, args, kwargs):
144144
getattr(self, tensor_name).copy_(getattr(src, tensor_name))
145145
return
146146
raise ValueError(
147-
f"Not supported args for copy_ due to metadata mistach: {args[0], args[1]}"
147+
f"Not supported args for copy_ due to metadata mismatch: {args[0], args[1]}"
148148
)
149149

150150
elif func is aten.t.default:

torchao/dtypes/uintx/q_dq_layout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def __torch_dispatch__(cls, func, types, args, kwargs):
163163
getattr(self, tensor_name).copy_(getattr(src, tensor_name))
164164
return
165165
raise ValueError(
166-
f"Not supported args for copy_ due to metadata mistach: {args[0], args[1]}"
166+
f"Not supported args for copy_ due to metadata mismatch: {args[0], args[1]}"
167167
)
168168

169169
elif func is aten.t.default:

torchao/dtypes/uintx/tensor_core_tiled_layout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ def __torch_dispatch__(cls, func, types, args, kwargs):
361361
getattr(self, tensor_name).copy_(getattr(src, tensor_name))
362362
return
363363
raise ValueError(
364-
f"Not supported args for copy_ due to metadata mistach: {args[0], args[1]}"
364+
f"Not supported args for copy_ due to metadata mismatch: {args[0], args[1]}"
365365
)
366366

367367
if func in [aten.select.int, aten.index.Tensor]:

torchao/quantization/linear_activation_quantized_tensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def _(func, types, args, kwargs):
226226
return
227227

228228
raise ValueError(
229-
f"Not supported args for copy_ due to metadata mistach: {args[0], args[1]}"
229+
f"Not supported args for copy_ due to metadata mismatch: {args[0], args[1]}"
230230
)
231231

232232

0 commit comments

Comments
 (0)