Join us at TensorFlow World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

tff.framework.are_equivalent_types

View source

Determines whether type1 and type2 are equivalent.

tff.framework.are_equivalent_types(
    type1,
    type2
)

We define equivaence in this context as both types being assignable from one-another.

Args:

  • type1: One type.
  • type2: Another type.

Returns:

True iff type1 anf type2 are equivalent, or else False.