tf.raw_ops.Cast

Cast x of type SrcT to y of DstT.

Compat aliases for migration

See Migration guide for more details.

tf.compat.v1.raw_ops.Cast

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.