tff.program.MaterializableValueReference

An abstract interface representing references to server-placed values.

Inherits From: TypedObject

type_signature The tff.Type of this object.

Methods

get_value

View source

Returns the referenced value.

The Python type of the referenced value depends on the type_signature:

TFF Type Python Type
tff.TensorType bool, int, float, complex, str, bytes,
np.generic, or np.ndarray
tff.SequenceType Iterable of any Python type corresponding to a
tff.TensorType