mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-05 08:37:06 +08:00
fix is_permuted (#3100)
This commit is contained in:
@@ -34,7 +34,7 @@ class W4A8Config(QuantConfigBase):
|
||||
|
||||
@classmethod
|
||||
def from_config(cls, config: dict) -> "W4A8Config":
|
||||
is_permuted = getattr(config, "is_permuted", False)
|
||||
is_permuted = config.get("is_permuted", True)
|
||||
return cls(is_permuted)
|
||||
|
||||
def get_quant_method(self, layer) -> Optional[QuantMethodBase]:
|
||||
|
Reference in New Issue
Block a user