An implementation of
representing types of tensors in TFF.
__init__( dtype, shape=None )
Constructs a new instance from the given
dtype: An instance of
shape: An optional instance of
tf.TensorShapeor an argument that can be passed to its constructor (such as a
Nonefor the default scalar shape. TensorShapes with unknown rank are not supported.
TypeError: if arguments are of the wrong types.
Determines whether two type definitions are identical.
Note that this notion of equality is stronger than equivalence. Two types with equivalent definitions may not be identical, e.g., if they represent templates with differently named type variables in their definitions.
other: The other type to compare against.
True iff type definitions are syntatically identical (as defined above), or
NotImplementedError: If not implemented in the derived class.
Returns the compact string representation of this type.
Returns the formatted string representation of this type.