SetFormat
Description
Sets the format of a tensor.
Prototype
void SetFormat(Format format)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
format |
Input |
Data format, defined in the cpu_types.h file. |
Returns
None
Restrictions
None
Example
shape->SetFormat(FORMAT_NCHW);
Parent topic: Class TensorShape