You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: torchao/quantization/quant_api.py
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
# Copyright 2024-2025 Arm Limited and affiliates.
2
3
# All rights reserved.
3
-
4
4
# This source code is licensed under the license found in the
5
5
# LICENSE file in the root directory of this source tree.
6
6
@@ -862,8 +862,9 @@ def __post_init__(self):
862
862
assertself.weight_mapping_typein [
863
863
MappingType.ASYMMETRIC,
864
864
MappingType.SYMMETRIC,
865
+
MappingType.SYMMETRIC_NO_CLIPPING_ERR,
865
866
], (
866
-
f"weight_mapping_type must be MappingType.ASYMMETRIC or MappingType.SYMMETRIC, but got {self.weight_mapping_type}"
867
+
f"weight_mapping_type must be MappingType.ASYMMETRIC or MappingType.SYMMETRIC or MappingType.SYMMETRIC_NO_CLIPPING_ERR, but got {self.weight_mapping_type}"
0 commit comments