deallocate_cache
函数原型
deallocate_cache(cache: Cache)
参数说明
| 参数名称 | 数据类型 | 取值说明 | 
|---|---|---|
| cache | 要释放的Cache。 | 
调用示例
| 1 2 3 | from llm_datadist import * ... cache_manager.deallocate_cache(cache) | 
约束说明
如果Cache不存在或已释放,该操作为空操作。
父主题: CacheManager
deallocate_cache(cache: Cache)
| 参数名称 | 数据类型 | 取值说明 | 
|---|---|---|
| cache | 要释放的Cache。 | 
| 1 2 3 | from llm_datadist import * ... cache_manager.deallocate_cache(cache) | 
如果Cache不存在或已释放,该操作为空操作。