mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-05 08:37:06 +08:00
[Feature] support clear data (#3601)
* [Feature] support clear data * update * fix * fix * fix * fix * fix * fix * fix
This commit is contained in:
@@ -1923,6 +1923,10 @@ class GPUModelRunner(ModelRunnerBase):
|
||||
|
||||
self.dynamic_weight_manager._log_memory("dynamic weight manager clear all memory")
|
||||
|
||||
def clear_requests(self):
|
||||
"""Dynamic model loader use to clear requests use for RL"""
|
||||
self.share_inputs["stop_flags"][:] = True
|
||||
|
||||
def update_parameters(self, pid):
|
||||
"""Dynamic model loader use to update parameters use for RL"""
|
||||
# Update parameters
|
||||
|
Reference in New Issue
Block a user