Missed TensorFlow World? Check out the recap. Learn more

tff.framework.are_equivalent_types

View source on GitHub

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.