tf.raw_ops.Cast

Cast x of type SrcT to y of DstT.

tf.raw_ops.Cast(
    x, DstT, Truncate=False, name=None
)

Args:

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

Returns:

A Tensor of type DstT.