文档
注册

TensorDesc构造函数和析构函数

函数功能

TensorDesc构造函数和析构函数。

函数原型

TensorDesc();

explicit TensorDesc(Shape shape, Format format = FORMAT_ND, DataType dt = DT_FLOAT);

TensorDesc(const TensorDesc& desc);

TensorDesc(TensorDesc&& desc);

TensorDesc &operator=(const TensorDesc &desc);

TensorDesc &operator=(TensorDesc &&desc);

~TensorDesc()

参数说明

参数名

输入/输出

描述

shape

输入

Shape对象。

format

输入

Format对象,默认取值FORMAT_ND。

关于Format数据类型的定义,请参见Format

dt

输入

DataType对象,默认取值DT_FLOAT。

关于DataType数据类型的定义,请参见DataType

返回值

TensorDesc构造函数返回TensorDesc类型的对象。

异常处理

无。

约束说明

无。

搜索结果
找到“0”个结果

当前产品无相关内容

未找到相关内容,请尝试其他搜索词