set_origin_format
Applicable Products
All processors
Function Usage
Sets the original format of a tensor into TensorDesc. The original format refers to that of the original network model.
Prototype
1 | set_origin_format(format: Format) -> TensorDesc |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
format |
Input |
Original 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