tf.io.decode_base64
Stay organized with collections
Save and categorize content based on your preferences.
Decode web-safe base64-encoded strings.
tf.io.decode_base64(
input: Annotated[Any, _atypes.String], name=None
) -> Annotated[Any, _atypes.String]
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 .
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2024-04-26 UTC.
[null,null,["Last updated 2024-04-26 UTC."],[],[],null,["# tf.io.decode_base64\n\n\u003cbr /\u003e\n\nDecode web-safe base64-encoded strings.\n\n#### View aliases\n\n\n**Compat aliases for migration**\n\nSee\n[Migration guide](https://www.tensorflow.org/guide/migrate) for\nmore details.\n\n[`tf.compat.v1.decode_base64`](https://www.tensorflow.org/api_docs/python/tf/io/decode_base64), [`tf.compat.v1.io.decode_base64`](https://www.tensorflow.org/api_docs/python/tf/io/decode_base64)\n\n\u003cbr /\u003e\n\n tf.io.decode_base64(\n input: Annotated[Any, _atypes.String], name=None\n ) -\u003e Annotated[Any, _atypes.String]\n\nInput may or may not have padding at the end. See\n[EncodeBase64](https://www.tensorflow.org/api_docs/python/tf/io/encode_base64)\nfor padding. Web-safe means that input must use - and _ instead of + and /.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|---------|--------------------------------------------------------|\n| `input` | A `Tensor` of type `string`. Base64 strings to decode. |\n| `name` | A name for the operation (optional). |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| A `Tensor` of type `string`. ||\n\n\u003cbr /\u003e"]]