Thanks for tuning in to Google I/O. View all sessions on demandWatch on demand


A synchronous context to evaluate of computations.



View source

Invokes computation comp with argument arg.

comp The computation being invoked. The Python type of comp expected here (e.g., pb.Computation. tff.framework.ConcreteComputation, or other) may depend on the context. It is the responsibility of the concrete implementation of this interface to verify that the type of comp matches what the context is expecting.
arg The argument passed to the computation. If no argument is passed, this will be None. Structural argument types will be normalized into tff.structure.Structs.

The result of invocation, which is context-dependent.