![]() |
A wrapper around a target executor that makes it into a gRPC service.
tff.framework.ExecutorService(
ex_factory: tff.framework.ExecutorFactory
,
*args,
**kwargs
)
Attributes | |
---|---|
executor
|
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.
Dispose
Dispose(
request: executor_pb2.DisposeRequest,
context: grpc.ServicerContext
) -> executor_pb2.DisposeResponse
Disposes of a value, making it no longer available for future calls.
Execute
Execute(
request_iter: Iterable[executor_pb2.ExecuteRequest],
context: grpc.ServicerContext
) -> Iterable[executor_pb2.ExecuteResponse]
Yields responses to streaming requests.
SetCardinalities
SetCardinalities(
request: executor_pb2.SetCardinalitiesRequest,
context: grpc.ServicerContext
) -> executor_pb2.SetCardinalitiesResponse
Sets the cartinality for the executor service.