MCPcopy Create free account
hub / github.com/PaddlePaddle/FastDeploy / clear_caches

Method clear_caches

fastdeploy/model_executor/forward_meta.py:161–164  ·  view source on GitHub ↗

Safely clean up the caches

(self)

Source from the content-addressed store, hash-verified

159 exist_prefill: bool = False
160
161 def clear_caches(self):
162 """Safely clean up the caches"""
163 if self.caches:
164 del self.caches
165
166 def __str__(self) -> str:
167 """

Callers 5

clear_cacheMethod · 0.45
clear_cacheMethod · 0.45
clear_cacheMethod · 0.45
clear_cacheMethod · 0.45
clear_cacheMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected