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


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.