tff.framework.are_equivalent_types

View source on GitHub

Determines whether type1 and type2 are equivalent.

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

type1 One type.
type2 Another type.

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