tff.framework.ExecutorService

View source on GitHub

A wrapper around a target executor that makes it into a gRPC service.

tff.framework.ExecutorService(
    executor, *args, **kwargs
)

Methods

Compute

View source

Compute(
    request, context
)

Computes a value embedded in the executor.

CreateCall

View source

CreateCall(
    request, context
)

Creates a call embedded in the executor.

CreateSelection

View source

CreateSelection(
    request, context
)

Creates a selection embedded in the executor.

CreateTuple

View source

CreateTuple(
    request, context
)

Creates a tuple embedded in the executor.

CreateValue

View source

CreateValue(
    request, context
)

Creates a value embedded in the executor.

Dispose

View source

Dispose(
    request, context
)

Disposes of a value, making it no longer available for future calls.

Execute

View source

Execute(
    request_iter, context
)

Yields responses to streaming requests.