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

Method clear_cache

fastdeploy/worker/xpu_model_runner.py:1803–1807  ·  view source on GitHub ↗

Clear cached data from shared inputs and forward metadata

(self)

Source from the content-addressed store, hash-verified

1801 return
1802
1803 def clear_cache(self):
1804 """Clear cached data from shared inputs and forward metadata"""
1805 self.share_inputs.pop("caches", None)
1806 if self.forward_meta is not None:
1807 self.forward_meta.clear_caches()
1808
1809 def _init_image_preprocess(self) -> None:
1810 processor = DataProcessor(

Callers

nothing calls this directly

Calls 2

popMethod · 0.80
clear_cachesMethod · 0.45

Tested by

no test coverage detected