tff.framework.RemoteExecutorGrpcStub
Stay organized with collections
Save and categorize content based on your preferences.
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
View source
compute(
request: executor_pb2.ComputeRequest
) -> executor_pb2.ComputeResponse
Dispatches a Compute gRPC.
create_call
View source
create_call(
request: executor_pb2.CreateCallRequest
) -> executor_pb2.CreateCallResponse
Dispatches a CreateCall gRPC.
create_selection
View source
create_selection(
request: executor_pb2.CreateSelectionRequest
) -> executor_pb2.CreateSelectionResponse
Dispatches a CreateSelection gRPC.
create_struct
View source
create_struct(
request: executor_pb2.CreateStructRequest
) -> executor_pb2.CreateStructResponse
Dispatches a CreateStruct gRPC.
create_value
View source
create_value(
request: executor_pb2.CreateValueRequest
) -> executor_pb2.CreateValueResponse
Dispatches a CreateValue gRPC.
dispose
View source
dispose(
request: executor_pb2.DisposeRequest
) -> executor_pb2.DisposeResponse
Dispatches a Dispose gRPC.
dispose_executor
View source
dispose_executor(
request: executor_pb2.DisposeExecutorRequest
) -> executor_pb2.DisposeExecutorResponse
Invokes DisposeExecutor
in a remote TFF runtime.
get_executor
View source
get_executor(
request: executor_pb2.GetExecutorRequest
) -> executor_pb2.GetExecutorResponse
Dispatches a GetExecutor gRPC.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-20 UTC.
[null,null,["Last updated 2024-09-20 UTC."],[],[],null,["# tff.framework.RemoteExecutorGrpcStub\n\n\u003cbr /\u003e\n\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/federated/blob/v0.87.0 Version 2.0, January 2004 Licensed under the Apache License, Version 2.0 (the) |\n\nA stub connects to a remote executor service over gRPC.\n\nInherits From: [`RemoteExecutorStub`](../../tff/framework/RemoteExecutorStub) \n\n tff.framework.RemoteExecutorGrpcStub(\n channel: grpc.Channel\n )\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|-----------|----------------------------------------------------------------------------------------|\n| `channel` | An instance of `grpc.Channel` to use for communication with a remote executor service. |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Attributes ---------- ||\n|------------|---------------------------------------|\n| `is_ready` | True if the gRPC connection is ready. |\n\n\u003cbr /\u003e\n\nMethods\n-------\n\n### `compute`\n\n[View source](https://github.com/tensorflow/federated/blob/v0.87.0\nVersion 2.0, January 2004\nLicensed under the Apache License, Version 2.0 (the) \n\n compute(\n request: executor_pb2.ComputeRequest\n ) -\u003e executor_pb2.ComputeResponse\n\nDispatches a Compute gRPC.\n\n### `create_call`\n\n[View source](https://github.com/tensorflow/federated/blob/v0.87.0\nVersion 2.0, January 2004\nLicensed under the Apache License, Version 2.0 (the) \n\n create_call(\n request: executor_pb2.CreateCallRequest\n ) -\u003e executor_pb2.CreateCallResponse\n\nDispatches a CreateCall gRPC.\n\n### `create_selection`\n\n[View source](https://github.com/tensorflow/federated/blob/v0.87.0\nVersion 2.0, January 2004\nLicensed under the Apache License, Version 2.0 (the) \n\n create_selection(\n request: executor_pb2.CreateSelectionRequest\n ) -\u003e executor_pb2.CreateSelectionResponse\n\nDispatches a CreateSelection gRPC.\n\n### `create_struct`\n\n[View source](https://github.com/tensorflow/federated/blob/v0.87.0\nVersion 2.0, January 2004\nLicensed under the Apache License, Version 2.0 (the) \n\n create_struct(\n request: executor_pb2.CreateStructRequest\n ) -\u003e executor_pb2.CreateStructResponse\n\nDispatches a CreateStruct gRPC.\n\n### `create_value`\n\n[View source](https://github.com/tensorflow/federated/blob/v0.87.0\nVersion 2.0, January 2004\nLicensed under the Apache License, Version 2.0 (the) \n\n create_value(\n request: executor_pb2.CreateValueRequest\n ) -\u003e executor_pb2.CreateValueResponse\n\nDispatches a CreateValue gRPC.\n\n### `dispose`\n\n[View source](https://github.com/tensorflow/federated/blob/v0.87.0\nVersion 2.0, January 2004\nLicensed under the Apache License, Version 2.0 (the) \n\n dispose(\n request: executor_pb2.DisposeRequest\n ) -\u003e executor_pb2.DisposeResponse\n\nDispatches a Dispose gRPC.\n\n### `dispose_executor`\n\n[View source](https://github.com/tensorflow/federated/blob/v0.87.0\nVersion 2.0, January 2004\nLicensed under the Apache License, Version 2.0 (the) \n\n dispose_executor(\n request: executor_pb2.DisposeExecutorRequest\n ) -\u003e executor_pb2.DisposeExecutorResponse\n\nInvokes `DisposeExecutor` in a remote TFF runtime.\n\n### `get_executor`\n\n[View source](https://github.com/tensorflow/federated/blob/v0.87.0\nVersion 2.0, January 2004\nLicensed under the Apache License, Version 2.0 (the) \n\n get_executor(\n request: executor_pb2.GetExecutorRequest\n ) -\u003e executor_pb2.GetExecutorResponse\n\nDispatches a GetExecutor gRPC."]]