---
title: ListTensorType
description: "ListTensorType类用以定义输入或者输出支持的数据类型，是TensorType的封装，用于标识支持多个数据类型的情况。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/maintenref/basicdataapi/atlasopapi_07_00320.html
sourcePath: /source/zh/canncommercial/900/maintenref/basicdataapi/atlasopapi_07_00320.html
indexId: eabd82a363dbc75ee45a8c03ddb5ece9878813d1ea28a98a37d3343d060680be78
---
# ListTensorType

#### 函数功能

ListTensorType类用以定义输入或者输出支持的数据类型，是TensorType的封装，用于标识支持多个数据类型的情况。


#### 函数原型

```
explicit ListTensorType(const TensorType &type)
```


#### 参数说明

| 参数 | 输入/输出 | 说明 |
| --- | --- | --- |
| type | 输入 | 数据类型，TensorType。 |


#### 返回值

无。


#### 异常处理

无。


#### 约束说明

无。
