TensorFlow 2.0 Beta is available Learn more

tff.Type

Class Type

An abstract interface for all classes that represent TFF types.

Defined in python/core/api/computation_types.py.

Methods

__eq__

__eq__(other)

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__

__ne__(other)

Return self!=value.