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