nvidia.dali.experimental.dynamic.cast_like#

nvidia.dali.experimental.dynamic.cast_like(input_0, input_1, /, *, batch_size=None, device=None)#

Cast the first tensor to the type of the second tensor.

This operator allows sequence inputs and supports volumetric data.

Supported backends
  • ‘cpu’

  • ‘gpu’

Parameters:
  • input_0 (Tensor/Batch) – Input to the operator.

  • input_1 (Tensor/Batch) – Input to the operator.