clear_cache接口

接口功能

清理cache。

接口实现

def clear_cache(self):
    del self.cache_pool
    torch.npu.empty_cache()
    gc.collect()