---
title: CacheDesc
description: "Cache的描述信息"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/others/llmdatadistdev/llmcrv1_42_22.html
sourcePath: /source/zh/canncommercial/900/others/llmdatadistdev/llmcrv1_42_22.html
indexId: 25a9984f5fad1e798ce09dbd9638ab118e60c44cc8c11761446eab9486c3978170
---
# CacheDesc

Cache的描述信息

```
struct CacheDesc {
  CachePlacement placement = CachePlacement::kDevice;    // 内存类型
  uint32_t num_tensors = 0U;                             // Cache包含的tensor个数
  DataType data_type = DT_UNDEFINED;                     // Cache中tensor的数据类型
  std::vector<int64_t> shape;                            // Cache中tensor的shape
  uint8_t reserved[128];                                 // 预留
}
```
