---
title: 构造函数
description: "CompileTimeTensorDesc类用于描述编译时的Tensor描述信息，包含dtype信息以及format信息。由于编译时无法确定shape，因此不包含shape信息。该函数为CompileTimeTensorDesc类的构造函数。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/maintenref/basicdataapi/atlasopapi_07_00011.html
sourcePath: /source/zh/canncommercial/900/maintenref/basicdataapi/atlasopapi_07_00011.html
indexId: 6c3253d93c7c5da79e52349113dd225606e74668067fb363a7771dd5c5eff4db78
---
# 构造函数

#### 函数功能

CompileTimeTensorDesc类用于描述编译时的Tensor描述信息，包含dtype信息以及format信息。由于编译时无法确定shape，因此不包含shape信息。该函数为CompileTimeTensorDesc类的构造函数。


#### 函数原型

```
CompileTimeTensorDesc()
```


#### 参数说明

无。


#### 返回值说明

返回一个CompileTimeTensorDesc对象。


#### 约束说明

无。
