tf.io.decode_compressed | TensorFlow v2.16.1 (original) (raw)
tf.io.decode_compressed
Stay organized with collections Save and categorize content based on your preferences.
Decompress strings.
View aliases
Compat aliases for migration
SeeMigration guide for more details.
tf.compat.v1.decode_compressed, tf.compat.v1.io.decode_compressed
tf.io.decode_compressed(
bytes: Annotated[Any, _atypes.String],
compression_type: str = '',
name=None
) -> Annotated[Any, _atypes.String]
This op decompresses each element of the bytes
input Tensor
, which is assumed to be compressed using the given compression_type
.
The output
is a string Tensor
of the same shape as bytes
, each element containing the decompressed data from the corresponding element in bytes
.
Args | |
---|---|
bytes | A Tensor of type string. A Tensor of string which is compressed. |
compression_type | An optional string. Defaults to "". A scalar containing either (i) the empty string (no compression), (ii) "ZLIB", or (iii) "GZIP". |
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.