Module: tff.backends.native

Libraries for interacting with native backends.

Functions

create_local_async_python_execution_context(...): Creates a context that executes computations locally as coro functions.

create_local_python_execution_context(...): Creates an execution context that executes computations locally.

create_localhost_cpp_execution_context(...): Creates an execution context backed by TFF-C++ runtime.

create_mergeable_comp_execution_context(...): Creates context which compiles to and executes mergeable comp form.

create_remote_python_execution_context(...): Creates context to execute computations with workers on channels.

create_sizing_execution_context(...): Creates an execution context that executes computations locally.

create_thread_debugging_execution_context(...): Creates a simple execution context that executes computations locally.

set_local_async_python_execution_context(...): Sets a context that executes computations locally as coro functions.

set_local_python_execution_context(...): Sets an execution context that executes computations locally.

set_localhost_cpp_execution_context(...): Sets default context to a localhost TFF executor.

set_mergeable_comp_execution_context(...): Sets context which compiles to and executes mergeable comp form.

set_remote_python_execution_context(...): Installs context to execute computations with workers on channels.

set_thread_debugging_execution_context(...): Sets an execution context that executes computations locally.

transform_to_native_form(...): Compiles a computation for execution in the TFF native runtime.