TensorDesc Constructor and Destructor
Description
Constructs or destructs an object of class TensorDesc.
Prototype
TensorDesc()
~TensorDesc() = default
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)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
shape |
Input |
Shape object. |
format |
Input |
Format object. The default value is FORMAT_ND. For the definition of the Format data type, see Format. |
dt |
Input |
DataType object. The default value is DT_FLOAT. For details about the definition of data types, see DataType. |
desc |
Input |
TensorDesc object to be copied or moved. |
Returns
An object of the TensorDesc type
Exception Handling
None
Restrictions
None
Parent topic: TensorDesc