Missed TensorFlow World? Check out the recap. Learn more

tf.io.decode_base64

TensorFlow 2.0 version

Defined in generated file: python/ops/gen_string_ops.py

Decode web-safe base64-encoded strings.

Aliases:

  • tf.compat.v1.decode_base64
  • tf.compat.v1.io.decode_base64
  • tf.compat.v2.io.decode_base64
  • tf.decode_base64
tf.io.decode_base64(
    input,
    name=None
)

Input may or may not have padding at the end. See EncodeBase64 for padding. Web-safe means that input must use - and _ instead of + and /.

Args:

  • input: A Tensor of type string. Base64 strings to decode.
  • name: A name for the operation (optional).

Returns:

A Tensor of type string.