SetViewFormat
Function Usage
Sets the ViewFormat of an aclTensor. ViewFormat is the logical format of the aclTensor.
Prototype
void SetViewFormat(op::Format format)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
format |
Input |
The data type is op::Format(ge::Format) , an enumeration that contains multiple formats, such as NCHW and ND. |
Returns
None
Constraints
None
Examples
1 2 3 4 | // Set the ViewFormat of the input to ND. void Func(const aclTensor *input) { input->SetViewFormat(ge::FORMAT_ND); } |
Parent topic: common_types