![]() |
Structure containing info on the tf.Tensor
shape/dtype.
tfds.features.TensorInfo(
shape, dtype, default_value=None, sequence_rank=None, dataset_lvl=0
)
Args | |
---|---|
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.
|
dataset_lvl
|
int , if >0, nesting level of a tfds.features.Dataset .
|
Methods
copy_from
@classmethod
copy_from( tensor_info )
Copy constructor.
__eq__
__eq__(
other
)
Equality.