Save the date! Google I/O returns May 18-20 Register now


Get an example decoder function for a nested spec.

Given a spec, returns an example decoder function. The decoder function parses string serialized example protos into tensors according to the given spec.

example_spec list/tuple/nest of ArraySpecs describing a single example.
batched Boolean indicating if the decoder will receive batches of serialized data.


decoder(serialized_proto: tf.tensor[string]) -> example_spec nest of tensors