SetRealDimCnt

Description

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

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.

Restrictions

None.