SetRealDimCnt
Function Usage
Sets the actual dimension count of a tensor into TensorDesc.
The shape returned by the GetShape API may need to be padded with 1. This API is used to set the actual number of dimensions.
Prototype
1 | void SetRealDimCnt(const int64_t real_dim_cnt) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
real_dim_cnt |
Input |
Actual number of data dimensions to be set. |
Returns
None
Exception Handling
None
Constraints
None
Parent topic: TensorDesc