mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2026-04-23 00:17:25 +08:00
clean nvfp4 related code (#6644)
This commit is contained in:
@@ -266,9 +266,8 @@ def process_final_after_loading(model, fd_config: FDConfig):
|
||||
if hasattr(quant_method, "process_weights_after_loading"):
|
||||
quant_method.process_weights_after_loading(sublayer)
|
||||
continue
|
||||
if not hasattr(sublayer, "process_weights_after_loading"):
|
||||
continue
|
||||
sublayer.process_weights_after_loading()
|
||||
if hasattr(sublayer, "process_weights_after_loading"):
|
||||
sublayer.process_weights_after_loading()
|
||||
|
||||
|
||||
def free_tensor(tensor):
|
||||
|
||||
Reference in New Issue
Block a user