---
title: DeallocateCache
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/others/llmdatadistdev/llmcrv1_42_18.html
sourcePath: /source/zh/canncommercial/900/others/llmdatadistdev/llmcrv1_42_18.html
indexId: aa43772d07a0ea7934e991c9c6a4680de9234d88c2ec410934b56a27e80c9eb670
---
# DeallocateCache

#### 产品支持情况

| 产品 | 是否支持 |
| --- | --- |
| Atlas 350 加速卡 | x |
| Atlas A3 训练系列产品 / Atlas A3 推理系列产品 | √ |
| Atlas A2 训练系列产品 / Atlas A2 推理系列产品 | √ |
| Atlas 200I/500 A2 推理产品 | x |
| Atlas 推理系列产品 | x |
| Atlas 训练系列产品 | x |


说明：针对 Atlas A2 训练系列产品 / Atlas A2 推理系列产品 ，仅支持Atlas 800I A2 推理服务器、A200I A2 Box 异构组件。


#### 函数功能

释放Cache。


#### 函数原型

```
Status DeallocateCache(int64_t cache_id)
```


#### 参数说明

| 参数名称 | 输入/输出 | 取值说明 |
| --- | --- | --- |
| cache\_id | 输入 | Cache的ID。 |


#### 调用示例

```
Status ret = llm_datadist.DeallocateCache(cache.cache_id)
```


#### 返回值

- LLM_SUCCESS：成功
- 其他：失败


#### 约束说明

该接口调用之前，需要先调用Initialize接口完成初始化。
