nvidia.dali.experimental.dynamic.squeeze#
- nvidia.dali.experimental.dynamic.squeeze(data, /, *, batch_size=None, device=None, axes=None, axis_names=None)#
Removes the dimensions given as
axesoraxis_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
‘cpu’
‘gpu’
- Parameters:
data¶ (Tensor/Batch) – Data to be squeezed
- Keyword Arguments:
axes¶ (int or list of int or Tensor/Batch of int, optional) –
Indices of dimensions which should be removed.
All squeezed dimensions should have size 1, unless the total volume of the tensor is 0 before and after squeeze. All indices must be in the range of valid dimensions of the input
axis_names¶ (layout str, optional) –
Layout columns which should be removed.
All squeezed dimensions should have size 1, unless the total volume of the tensor is 0 before and after squeeze. All layout names should be present in data layout.