tff.SequenceType

View source on GitHub

An implementation of tff.Type representing types of sequences in TFF.

Inherits From: Type

Used in the notebooks

Used in the tutorials

element A specification of the element type, either an instance of tff.Type or something convertible to it by tff.to_type.

element

Methods

compact_representation

View source

Returns the compact string representation of this type.

formatted_representation

View source

Returns the formatted string representation of this type.

__eq__

View source

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.

Args
other The other type to compare against.

Returns
True iff type definitions are syntatically identical (as defined above), or False otherwise.

Raises
NotImplementedError If not implemented in the derived class.

__ne__

View source

Return self!=value.