nvidia.dali.fn.squeeze — NVIDIA DALI (original) (raw)

nvidia.dali.fn.squeeze(__data, /, *, axes=[], axis_names='', bytes_per_sample_hint=[0], preserve=False, device=None, name=None)#

Removes the dimensions given as axes or axis_names.

It’s an error to remove a dimension that would cause the total volume to change.

This operator allows sequence inputs and supports volumetric data.

Supported backends

Parameters:

__data (TensorList) – Data to be squeezed

Keyword Arguments: