Squeeze Dimensions

Node Icon

Remove singleton dimensions from a Numeric Array or Boolean Array, i.e. dimensions with 1 element.

Example 1: An input with shape [1, 3, 1] will have a new shape of [3] if all singleton dimensions are squeezed.

Example 2: An input with shape [1, 3, 1] will have a new shape of [3, 1] if only dimension [0] is squeezed.

Inputs

Input

Input Numeric Array or Boolean Array.

Type: Numeric Array, Boolean Array, List, Required, Single

Outputs

Output

Output Numeric Array or Boolean Array.

Type: Numeric Array, Boolean Array, List

Settings

Type Selection

Select if all or specific singleton dimensions should be removed.

Values: All, Specific

Dimensions to Squeeze Integers

Select specific singleton dimension indices that will be removed.

See also

Keywords: