clear_cache接口 接口功能清理cache。 接口实现def clear_cache(self): del self.cache_pool torch.npu.empty_cache() gc.collect() 父主题: generator_torch.py提供Python接口