tfds.features.TensorInfo

Structure containing info on the tf.Tensor shape/dtype.

shape tuple[int], shape of the tensor
dtype Tensor dtype
default_value Used for retrocompatibility with previous files if a new field is added to provide a default value when reading the file.
sequence_rank int, Number of tfds.features.Sequence dimension.

Methods

copy_from

View source

Copy constructor.

__eq__

View source

Equality.

Class Variables

  • default_value
  • dtype
  • sequence_rank
  • shape