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

tff.framework.ExecutorValue

View source

Class ExecutorValue

Represents the abstract interface for values embedded within executors.

Inherits From: TypedObject

The embedded values may represent computations in-flight that may materialize in the future or fail before they materialize.

NOTE: This component is only available in Python 3.

Properties

type_signature

Returns the TFF type of this object (an instance of tff.Type).

Methods

compute

View source

compute()

A coroutine that asynchronously returns the computed form of the value.

The computed form of a value can take a number of forms, such as primitive types in Python, numpy arrays, or even eager tensors in case this is an eager executor, or an executor backed by an eager one.

Returns:

The computed form of the value, as defined above.