文档首页>
Atlas 200 DK 开发者套件(1.0.7.alpha)>
TBE自定义算子开发指南>
接口参考>
插件和原型定义接口>
Operator接口>
TensorDesc类>
TensorDesc构造函数和析构函数
更新时间:2021-03-18 GMT+08:00
TensorDesc构造函数和析构函数
函数功能
TensorDesc构造函数和析构函数。
函数原型
TensorDesc();
explicit TensorDesc(Shape shape, Format format = FORMAT_ND, DataType dt = DT_FLOAT);
TensorDesc(const TensorDesc& desc);
TensorDesc(TensorDesc&& desc);
~TensorDesc()
参数说明
返回值
TensorDesc构造函数返回TensorDesc类型的对象。
异常处理
无。
约束说明
无。
父主题: TensorDesc类
