![]() |
A wrapper around a target executor that makes it into a gRPC service.
tff.framework.ExecutorService(
ex_factory: tff.framework.ExecutorFactory
,
*args,
**kwargs
)
Methods
Compute
Compute(
request: executor_pb2.ComputeRequest, context: grpc.ServicerContext
) -> executor_pb2.ComputeResponse
Computes a value embedded in the executor.
CreateCall
CreateCall(
request: executor_pb2.CreateCallRequest, context: grpc.ServicerContext
) -> executor_pb2.CreateCallResponse
Creates a call embedded in the executor.
CreateSelection
CreateSelection(
request: executor_pb2.CreateSelectionRequest, context: grpc.ServicerContext
) -> executor_pb2.CreateSelectionResponse
Creates a selection embedded in the executor.
CreateStruct
CreateStruct(
request: executor_pb2.CreateStructRequest, context: grpc.ServicerContext
) -> executor_pb2.CreateStructResponse
Creates a struct embedded in the executor.
CreateValue
CreateValue(
request: executor_pb2.CreateValueRequest, context: grpc.ServicerContext
) -> executor_pb2.CreateValueResponse
Creates a value embedded in the executor.
DestroyExecutor
DestroyExecutor(
request
)
Dispose
Dispose(
request: executor_pb2.DisposeRequest, context: grpc.ServicerContext
) -> executor_pb2.DisposeResponse
Disposes of a value, making it no longer available for future calls.
DisposeExecutor
DisposeExecutor(
request: executor_pb2.DisposeExecutorRequest, context: grpc.ServicerContext
) -> executor_pb2.DisposeExecutorResponse
Clears the service Executor-related state.
GetExecutor
GetExecutor(
request: executor_pb2.GetExecutorRequest, context: grpc.ServicerContext
) -> executor_pb2.GetExecutorResponse
Returns an identifier for an executor with the provided requirements.
executor
executor(
request: Any, context: grpc.ServicerContext
) -> tff.framework.Executor
Returns the executor which should be used to handle request
.