set_format
Applicable Products
All processors
Function Usage
Sets the format of a tensor into TensorDesc.
Prototype
1 | set_format(format: Format) -> TensorDesc |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
format |
Input |
New data format, which is of the Format type |
Returns
(TensorDesc) Returns itself to support chain calls.
Restrictions
If format is not of the Format type, TypeError is thrown.
Parent topic: TensorDesc