tff.framework.RemoteExecutorStub
Stay organized with collections
Save and categorize content based on your preferences.
Represents the interface of stubs call to an remote executor instance.
Attributes |
is_ready
|
Tells if the connection to remote is established.
|
Methods
compute
View source
@abc.abstractmethod
compute(
request: executor_pb2.ComputeRequest
) -> executor_pb2.ComputeResponse
Invokes Compute in a remote TFF runtime.
Args |
request
|
ComputeRequest.
|
create_call
View source
@abc.abstractmethod
create_call(
request: executor_pb2.CreateCallRequest
) -> executor_pb2.CreateCallResponse
Invokes CreateCall in a remote TFF runtime.
Args |
request
|
CreateCallRequest.
|
Returns |
CreateCallResponse.
|
create_selection
View source
@abc.abstractmethod
create_selection(
request: executor_pb2.CreateSelectionRequest
) -> executor_pb2.CreateSelectionResponse
Invokes CreateSelection in a remote TFF runtime.
Args |
request
|
CreateSelectionRequest.
|
Returns |
CreateSelectionResponse.
|
create_struct
View source
@abc.abstractmethod
create_struct(
request: executor_pb2.CreateStructRequest
) -> executor_pb2.CreateStructResponse
Invokes CreateStruct in a remote TFF runtime.
Args |
request
|
CreateStructRequest.
|
Returns |
CreateStructResponse.
|
create_value
View source
@abc.abstractmethod
create_value(
request: executor_pb2.CreateValueRequest
) -> executor_pb2.CreateValueResponse
Invokes CreateValue remotely.
Args |
request
|
CreateValueRequest.
|
Returns |
CreateValueResponse.
|
dispose
View source
@abc.abstractmethod
dispose(
request: executor_pb2.DisposeRequest
) -> executor_pb2.DisposeResponse
Invokes Dispose in a remote TFF runtime.
Args |
request
|
DisposeRequest.
|
dispose_executor
View source
@abc.abstractmethod
dispose_executor(
request: executor_pb2.DisposeExecutorRequest
) -> executor_pb2.DisposeExecutorResponse
Invokes DisposeExecutor
in a remote TFF runtime.
get_executor
View source
@abc.abstractmethod
get_executor(
request: executor_pb2.GetExecutorRequest
) -> executor_pb2.GetExecutorResponse
Invokes GetExecutor remotely.
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.RemoteExecutorStub\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\nRepresents the interface of stubs call to an remote executor instance.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Attributes ---------- ||\n|------------|---------------------------------------------------|\n| `is_ready` | Tells if the connection to remote is established. |\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 @abc.abstractmethod\n compute(\n request: executor_pb2.ComputeRequest\n ) -\u003e executor_pb2.ComputeResponse\n\nInvokes Compute in a remote TFF runtime.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ||\n|-----------|-----------------|\n| `request` | ComputeRequest. |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|---|---|\n| ComputeResponse. ||\n\n\u003cbr /\u003e\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 @abc.abstractmethod\n create_call(\n request: executor_pb2.CreateCallRequest\n ) -\u003e executor_pb2.CreateCallResponse\n\nInvokes CreateCall in a remote TFF runtime.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ||\n|-----------|--------------------|\n| `request` | CreateCallRequest. |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|---|---|\n| CreateCallResponse. ||\n\n\u003cbr /\u003e\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 @abc.abstractmethod\n create_selection(\n request: executor_pb2.CreateSelectionRequest\n ) -\u003e executor_pb2.CreateSelectionResponse\n\nInvokes CreateSelection in a remote TFF runtime.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ||\n|-----------|-------------------------|\n| `request` | CreateSelectionRequest. |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|---|---|\n| CreateSelectionResponse. ||\n\n\u003cbr /\u003e\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 @abc.abstractmethod\n create_struct(\n request: executor_pb2.CreateStructRequest\n ) -\u003e executor_pb2.CreateStructResponse\n\nInvokes CreateStruct in a remote TFF runtime.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ||\n|-----------|----------------------|\n| `request` | CreateStructRequest. |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|---|---|\n| CreateStructResponse. ||\n\n\u003cbr /\u003e\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 @abc.abstractmethod\n create_value(\n request: executor_pb2.CreateValueRequest\n ) -\u003e executor_pb2.CreateValueResponse\n\nInvokes CreateValue remotely.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ||\n|-----------|---------------------|\n| `request` | CreateValueRequest. |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|---|---|\n| CreateValueResponse. ||\n\n\u003cbr /\u003e\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 @abc.abstractmethod\n dispose(\n request: executor_pb2.DisposeRequest\n ) -\u003e executor_pb2.DisposeResponse\n\nInvokes Dispose in a remote TFF runtime.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ||\n|-----------|-----------------|\n| `request` | DisposeRequest. |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|---|---|\n| DisposeResponse. ||\n\n\u003cbr /\u003e\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 @abc.abstractmethod\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 @abc.abstractmethod\n get_executor(\n request: executor_pb2.GetExecutorRequest\n ) -\u003e executor_pb2.GetExecutorResponse\n\nInvokes GetExecutor remotely."]]