![]() |
Class TensorInfo
Structure containing info on the tf.Tensor
shape/dtype.
__init__
__init__(
shape,
dtype,
default_value=None,
sequence_rank=None
)
Constructor.
Args:
shape
:tuple[int]
, shape of the tensordtype
: Tensor dtypedefault_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 oftfds.features.Sequence
dimension.
Methods
__eq__
__eq__(other)
Equality.
copy_from
@classmethod
copy_from(
cls,
tensor_info
)
Copy constructor.