TF 2.0 is out! Get hands-on practice at TF World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

tfds.decode.SkipDecoding

View source

Class SkipDecoding

Transformation which skip the decoding entirelly.

Inherits From: Decoder

Example of usage:

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

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

__init__

View source

__init__()

Properties

dtype

Methods

decode_example

View source

decode_example(serialized_example)

Forward the serialized feature field.

setup

View source

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.

Args: