View source on GitHub |
A stub connects to a remote executor service over gRPC.
Inherits From: RemoteExecutorStub
tff.framework.RemoteExecutorGrpcStub(
channel: grpc.Channel
)
Args | |
---|---|
channel
|
An instance of grpc.Channel to use for communication with a
remote executor service.
|
Attributes | |
---|---|
is_ready
|
True if the gRPC connection is ready. |
Methods
compute
compute(
request: executor_pb2.ComputeRequest
) -> executor_pb2.ComputeResponse
Dispatches a Compute gRPC.
create_call
create_call(
request: executor_pb2.CreateCallRequest
) -> executor_pb2.CreateCallResponse
Dispatches a CreateCall gRPC.
create_selection
create_selection(
request: executor_pb2.CreateSelectionRequest
) -> executor_pb2.CreateSelectionResponse
Dispatches a CreateSelection gRPC.
create_struct
create_struct(
request: executor_pb2.CreateStructRequest
) -> executor_pb2.CreateStructResponse
Dispatches a CreateStruct gRPC.
create_value
create_value(
request: executor_pb2.CreateValueRequest
) -> executor_pb2.CreateValueResponse
Dispatches a CreateValue gRPC.
dispose
dispose(
request: executor_pb2.DisposeRequest
) -> executor_pb2.DisposeResponse
Dispatches a Dispose gRPC.
dispose_executor
dispose_executor(
request: executor_pb2.DisposeExecutorRequest
) -> executor_pb2.DisposeExecutorResponse
Invokes DisposeExecutor
in a remote TFF runtime.
get_executor
get_executor(
request: executor_pb2.GetExecutorRequest
) -> executor_pb2.GetExecutorResponse
Dispatches a GetExecutor gRPC.