Module: tff.framework

Interfaces for extensions, selectively lifted out of impl.

Defined in core/framework/__init__.py.

Classes

class Block: A representation of a block of code in TFF's internal language.

class Call: A representation of a function invocation in TFF's internal language.

class CompiledComputation: A representation of a fully constructed and serialized computation.

class ComputationBuildingBlock: The abstract base class for abstractions in the TFF's internal language.

class Intrinsic: A representation of an intrinsic in TFF's internal language.

class Lambda: A representation of a lambda expression in TFF's internal language.

class Placement: A representation of a placement literal in TFF's internal language.

class Reference: A reference to a name defined earlier in TFF's internal language.

class Selection: A selection by name or index from a tuple-typed value in TFF's language.

class Tuple: A tuple with named or unnamed elements in TFF's internal language.

Functions

is_assignable_from(...): Determines whether target_type is assignable from source_type.