GetShape

Description

Obtains the shape of a tensor described by TensorDesc.

Prototype

Shape GetShape() const

Parameters

None

Returns

Shape type, that is, shape described by TensorDesc.

Exception Handling

None

Restrictions

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