---
title: 函数：get_output_data_type
description: "| C函数原型 | aclDataType aclmdlGetOutputDataType(const aclmdlDesc \*modelDesc, size\_t index) |"
url: https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/latest/Application%20Development%20Guide/aadgp/aclpythondevg_01_0197.html
sourcePath: /source/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application Development Guide/aadgp/aclpythondevg_01_0197.html
indexId: e107d8e8710ae6766841d08016a17e54b6f797e3814e9813af523bce1544d1ea108
---
# 函数：get_output_data_type

| C函数原型 | aclDataType aclmdlGetOutputDataType(const aclmdlDesc \*modelDesc, size\_t index) |
| --- | --- |
| Python函数 | data\_type = acl.mdl.get\_output\_data\_type(model\_desc, index) |
| 函数功能 | 根据模型描述信息获取模型中指定输出的数据类型。同步接口。 |
| 输入说明 | model\_desc：int，aclmdlDesc类型数据的指针地址。 index：int，指定获取第几个输入的大小，index值从0开始。 |
| 返回值说明 | ata\_type：int，返回指定输入的数据类型。 \-1：ACL\_DT\_UNDEFINED，未知数据类型，默认值。 0：ACL\_FLOAT 1：ACL\_FLOAT16 2：ACL\_INT8 3：ACL\_INT32 4：ACL\_UINT8 6：ACL\_INT16 7：ACL\_UINT16 8：ACL\_UINT32 9：ACL\_INT64 10：ACL\_UINT64 11：ACL\_DOUBLE 12：ACL\_BOOL |
| 约束说明 | 无 |
