Watch talks from the 2019 TensorFlow Dev Summit Watch now

tff.FunctionType

Class FunctionType

Inherits From: Type

Defined in core/api/computation_types.py.

An implementation of tff.Type representing functional types in TFF.

__init__

__init__(
    parameter,
    result
)

Constructs a new instance from the given parameter and result types.

Args:

  • parameter: A specification of the parameter type, either an instance of tff.Type or something convertible to it by tff.to_type.
  • result: A specification of the result type, either an instance of tff.Type or something convertible to it by tff.to_type.

Properties

parameter

result

Methods

__eq__

__eq__(other)

__ne__

__ne__(other)