# tf.io.decode_compressed

<br />

|---|
| [![](https://www.tensorflow.org/images/tf_logo_32px.png) TensorFlow 1 version](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/io/decode_compressed) |

Decompress strings.

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.decode_compressed`](https://www.tensorflow.org/api_docs/python/tf/io/decode_compressed), [`tf.compat.v1.io.decode_compressed`](https://www.tensorflow.org/api_docs/python/tf/io/decode_compressed)

<br />

    tf.io.decode_compressed(
        bytes, compression_type='', name=None
    )

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`.

<br />

<br />

<br />

| ## 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). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A `Tensor` of type `string`. ||

<br />