---
title: acltdtGetDimNumFromItem
description: "得到正常tensor数据的数据Shape中的维度个数。同步接口。"
url: https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/latest/Application%20Development%20Guide/aadgc/aclcppdevg_03_1922.html
sourcePath: /source/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application Development Guide/aadgc/aclcppdevg_03_1922.html
indexId: 6fa6c8e515ca45e6fcb6e561b59f1d8c90a33ff2061ad949624f8346a86809d2105
---
# acltdtGetDimNumFromItem

#### 函数功能

得到正常tensor数据的数据Shape中的维度个数。同步接口。

Atlas 200/500 A2推理产品，不支持该接口。


#### 函数原型

size_t acltdtGetDimNumFromItem(const acltdtDataItem *dataItem)


#### 参数说明

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| dataItem | 输入 | acltdtDataItem类型的指针。 需提前调用acltdtCreateDataItem接口创建acltdtDataItem类型的数据。 |


#### 返回值说明

请参见acltdtTensorType。
