ML Community Day is November 9! Join us for updates from TensorFlow, JAX, and more Learn more

tf.raw_ops.Cast

Cast x of type SrcT to y of DstT.

x A Tensor.
DstT A tf.DType.
Truncate An optional bool. Defaults to False.
name A name for the operation (optional).

A Tensor of type DstT.