Dragon API Dragon v0.3.0 Python Cast¶ class dragon.vm.dali.ops.Cast( dtype, **kwargs)[source]¶ Cast the data type of input. Examples: cast = dali.ops.Cast(dtype='int64') y = cast(inputs['x']) __new__¶ static Cast.__new__( cls, dtype, **kwargs)[source]¶ Create a Cast operator. Parameters: dtype (str, optional) – The output data type. Returns:nvidia.dali.ops.Cast – The operator.