mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-05 08:37:06 +08:00
[feat]add fast_weights_iterator (#3258)
Some checks failed
Deploy GitHub Pages / deploy (push) Has been cancelled
Some checks failed
Deploy GitHub Pages / deploy (push) Has been cancelled
* add fast_weights_iterator * update * update
This commit is contained in:
@@ -162,11 +162,6 @@ class LinearBase(nn.Layer):
|
||||
self.linear_shift = None
|
||||
self.linear_smooth = None
|
||||
|
||||
if fd_config.model_config.is_quantized:
|
||||
self.weight_key = f"{prefix}.quant_weight"
|
||||
self.weight_scale_key = f"{prefix}.weight_scale"
|
||||
self.act_scale_key = f"{prefix}.activation_scale"
|
||||
|
||||
def load_prequant_weight(self, state_dict: dict):
|
||||
"""
|
||||
Load the prequantized weight from the state dictionary.
|
||||
|
Reference in New Issue
Block a user