Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/dtypes/test_affine_quantized.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def test_copy__mismatch_metadata(self, apply_quant):

# copy should fail due to shape mismatch
with self.assertRaisesRegex(
ValueError, "Not supported args for copy_ due to metadata mistach:"
ValueError, "Not supported args for copy_ due to metadata mismatch:"
):
ql2.weight.copy_(ql.weight)

Expand Down
2 changes: 1 addition & 1 deletion torchao/dtypes/affine_quantized_tensor_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ def _(func, types, args, kwargs):
getattr(self, tensor_name).copy_(getattr(src, tensor_name))
return
raise ValueError(
f"Not supported args for copy_ due to metadata mistach: {args[0], args[1]}"
f"Not supported args for copy_ due to metadata mismatch: {args[0], args[1]}"
)


Expand Down
2 changes: 1 addition & 1 deletion torchao/dtypes/floatx/cutlass_semi_sparse_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def __torch_dispatch__(cls, func, types, args, kwargs):
getattr(self, tensor_name).copy_(getattr(src, tensor_name))
return
raise ValueError(
f"Not supported args for copy_ due to metadata mistach: {args[0], args[1]}"
f"Not supported args for copy_ due to metadata mismatch: {args[0], args[1]}"
)
elif func is aten.clone.default:
return return_and_correct_aliasing(
Expand Down
2 changes: 1 addition & 1 deletion torchao/dtypes/uintx/cutlass_int4_packed_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def __torch_dispatch__(cls, func, types, args, kwargs):
getattr(self, tensor_name).copy_(getattr(src, tensor_name))
return
raise ValueError(
f"Not supported args for copy_ due to metadata mistach: {args[0], args[1]}"
f"Not supported args for copy_ due to metadata mismatch: {args[0], args[1]}"
)

raise NotImplementedError(
Expand Down
2 changes: 1 addition & 1 deletion torchao/dtypes/uintx/gemlite_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ def __torch_dispatch__(cls, func, types, args, kwargs):
self.gemlite_kwargs[key] = src.gemlite_kwargs[key]
return
raise ValueError(
f"Not supported args for copy_ due to metadata mistach: {args[0], args[1]}"
f"Not supported args for copy_ due to metadata mismatch: {args[0], args[1]}"
)

raise NotImplementedError(
Expand Down
2 changes: 1 addition & 1 deletion torchao/dtypes/uintx/plain_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def __torch_dispatch__(cls, func, types, args, kwargs):
getattr(self, tensor_name).copy_(getattr(src, tensor_name))
return
raise ValueError(
f"Not supported args for copy_ due to metadata mistach: {args[0], args[1]}"
f"Not supported args for copy_ due to metadata mismatch: {args[0], args[1]}"
)

elif func is aten.t.default:
Expand Down
2 changes: 1 addition & 1 deletion torchao/dtypes/uintx/q_dq_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def __torch_dispatch__(cls, func, types, args, kwargs):
getattr(self, tensor_name).copy_(getattr(src, tensor_name))
return
raise ValueError(
f"Not supported args for copy_ due to metadata mistach: {args[0], args[1]}"
f"Not supported args for copy_ due to metadata mismatch: {args[0], args[1]}"
)

elif func is aten.t.default:
Expand Down
2 changes: 1 addition & 1 deletion torchao/dtypes/uintx/tensor_core_tiled_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ def __torch_dispatch__(cls, func, types, args, kwargs):
getattr(self, tensor_name).copy_(getattr(src, tensor_name))
return
raise ValueError(
f"Not supported args for copy_ due to metadata mistach: {args[0], args[1]}"
f"Not supported args for copy_ due to metadata mismatch: {args[0], args[1]}"
)

if func in [aten.select.int, aten.index.Tensor]:
Expand Down
2 changes: 1 addition & 1 deletion torchao/quantization/linear_activation_quantized_tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def _(func, types, args, kwargs):
return

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


Expand Down
Loading