get_shape

Applicable Products

All processors

Function Usage

Obtains the shape of a tensor described by TensorDesc.

Prototype

1
get_shape() -> Shape

Parameters

None

Returns

Shape object

Restrictions

The returned shape is obtained through value copy (deep copy). This API call modifies the returned shape, which does not affect the existing shape in TensorDesc.