<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/datasets/blob/v4.9.10/tensorflow_datasets/core/decode/base.py#L117-L147) |

Transformation which skips the decoding entirely.

Inherits From: [`Decoder`](https://www.tensorflow.org/datasets/api_docs/python/tfds/decode/Decoder)

    tfds.decode.SkipDecoding()

#### Example of usage:

    ds = tfds.load(
        'imagenet2012',
        split='train',
        decoders={
            'image': tfds.decode.SkipDecoding(),
        }
    )

    for ex in ds.take(1):
      assert ex['image'].dtype == tf.string

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `dtype` | Returns the `dtype` after decoding. |
| `feature` | <br /> <br /> |

<br />

## Methods

### `decode_batch_example`

[View source](https://github.com/tensorflow/datasets/blob/v4.9.10/tensorflow_datasets/core/decode/base.py#L100-L108)

    decode_batch_example(
        serialized_example
    )

See [`FeatureConnector.decode_batch_example`](https://www.tensorflow.org/datasets/api_docs/python/tfds/features/FeatureConnector#decode_batch_example) for details.

### `decode_example`

[View source](https://github.com/tensorflow/datasets/blob/v4.9.10/tensorflow_datasets/core/decode/base.py#L141-L143)

    decode_example(
        serialized_example
    )

Forward the serialized feature field.

### `decode_example_np`

[View source](https://github.com/tensorflow/datasets/blob/v4.9.10/tensorflow_datasets/core/decode/base.py#L145-L147)

    decode_example_np(
        serialized_example
    )

Forward the serialized feature field.

### `decode_ragged_example`

[View source](https://github.com/tensorflow/datasets/blob/v4.9.10/tensorflow_datasets/core/decode/base.py#L110-L114)

    decode_ragged_example(
        serialized_example
    )

See [`FeatureConnector.decode_ragged_example`](https://www.tensorflow.org/datasets/api_docs/python/tfds/features/FeatureConnector#decode_ragged_example) for details.

### `setup`

[View source](https://github.com/tensorflow/datasets/blob/v4.9.10/tensorflow_datasets/core/decode/base.py#L56-L67)

    setup(
        *, feature
    )

Transformation contructor.

The initialization of decode object is deferred because the objects only
know the builder/features on which it is used after it has been
constructed, the initialization is done in this function.

<br />

<br />

<br />

| Args ||
|---|---|
| `feature` | [`tfds.features.FeatureConnector`](https://www.tensorflow.org/datasets/api_docs/python/tfds/features/FeatureConnector), the feature to which is applied this transformation. |

<br />