---
title: GetOutputTensorDataType
description: "获得模型输出的对应Tensor的数据类型信息。"
url: https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/latest/Application%20Development%20Guide/msadg/mxvisionug_0846.html
sourcePath: /source/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application Development Guide/msadg/mxvisionug_0846.html
indexId: d0f5514b603753a383bbdfe9ade20b754187d946ae59c6880089db545aac4aaa102
---
# GetOutputTensorDataType

#### 函数功能

获得模型输出的对应Tensor的数据类型信息。


#### 函数原型

```
MxBase::TensorDType GetOutputTensorDataType(uint32_t index = 0)
```


#### 参数说明

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| index | 输入 | 模型输出的索引（第index个输出）。 |


#### 返回参数说明

| 数据结构 | 说明 |
| --- | --- |
| MxBase::TensorDType | Tensor的数据类型，具体请参见TensorDType。 |
