tf.io.FixedLenSequenceFeature

View source on GitHub

Configuration for parsing a variable-length input feature into a Tensor.

tf.io.FixedLenSequenceFeature(
    shape, dtype, allow_missing=False, default_value=None
)

The resulting Tensor of parsing a single SequenceExample or Example has a static shape of [None] + shape and the specified dtype. The resulting Tensor of parsing a batch_size many Examples has a static shape of [batch_size, None] + shape and the specified dtype. The entries in the batch from different Examples will be padded with default_value to the maximum length present in the batch.

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

Fields:

Attributes: