is_unknown_shape

Applicable Products

All processors

Function Usage

Checks whether a shape contains unknown dimensions.

Prototype

1
is_unknown_shape() -> bool

Parameters

None

Returns

If the shape contains a dimension whose value is -1 or -2, True is returned. Otherwise, False is returned.

Restrictions

None