![]() |
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__
__init__()
Initialize self. See help(type(self)) for accurate signature.
Properties
dtype
Returns the dtype
after decoding.
Methods
decode_example
decode_example(serialized_example)
Forward the serialized feature field.
setup
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:
feature
:tfds.features.FeatureConnector
, the feature to which is applied this transformation.