|View source on GitHub|
Parses a single
tf.io.parse_single_example( serialized, features, example_names=None, name=None )
For dense tensors, the returned
Tensor is identical to the output of
parse_example, except there is no batch dimension, the output shape is the same as the shape given in
SparseTensors, the first (batch) column of the indices matrix is removed (the indices matrix is a column vector), the values vector is unchanged, and the first (
batch_size) entry of the shape vector is removed (it is now a single element vector).
One might see performance advantages by batching
Example protos with
parse_example instead of using this function directly.
| ||A scalar string Tensor, a single serialized Example.|
| || A |
| ||(Optional) A scalar string Tensor, the associated name.|
| ||A name for this operation (optional).|
| A |
| ||if any feature is invalid.|
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.