Python wrappers
Public Python APIs implemented by this engine symbol.Remove a single size-1 dimension.
Drops the axis at position dim, which must currently have size 1.
Negative dim wraps relative to the input rank.
See Also
squeeze_all_op, unsqueeze_op.
Parameters
aTensorImplPtrInput tensor with rank >= 1.
dimintAxis to remove. Must satisfy
-ndim <= dim < ndim and a.shape[dim] == 1.Returns
TensorImplPtrA view with rank ndim - 1.
Raises
IndexErrorIf
dim is out of range.ValueErrorIf the targeted dimension is not of size 1.