tf.io.FixedLenFeature

Configuration for parsing a fixed-length input feature.

Used in the notebooks

Used in the guideUsed in the tutorials

To treat sparse input as dense, provide a default_value; otherwise, the parse functions will fail on any examples missing this feature.

shapeShape of input data.
dtypeData type of input.
default_valueValue to be used if an example is missing this feature. It must be compatible with dtype and of the specified shape.

shapeA namedtuple alias for field number 0
dtypeA namedtuple alias for field number 1
default_valueA namedtuple alias for field number 2