# tff.framework.RemoteExecutorGrpcStub

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) 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) |

A stub connects to a remote executor service over gRPC.

Inherits From: [`RemoteExecutorStub`](https://www.tensorflow.org/federated/api_docs/python/tff/framework/RemoteExecutorStub)

    tff.framework.RemoteExecutorGrpcStub(
        channel: grpc.Channel
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `channel` | An instance of `grpc.Channel` to use for communication with a remote executor service. |

<br />

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `is_ready` | True if the gRPC connection is ready. |

<br />

## Methods

### `compute`

[View source](https://github.com/tensorflow/federated/blob/v0.87.0
Version 2.0, January 2004
Licensed under the Apache License, Version 2.0 (the)

    compute(
        request: executor_pb2.ComputeRequest
    ) -> executor_pb2.ComputeResponse

Dispatches a Compute gRPC.

### `create_call`

[View source](https://github.com/tensorflow/federated/blob/v0.87.0
Version 2.0, January 2004
Licensed under the Apache License, Version 2.0 (the)

    create_call(
        request: executor_pb2.CreateCallRequest
    ) -> executor_pb2.CreateCallResponse

Dispatches a CreateCall gRPC.

### `create_selection`

[View source](https://github.com/tensorflow/federated/blob/v0.87.0
Version 2.0, January 2004
Licensed under the Apache License, Version 2.0 (the)

    create_selection(
        request: executor_pb2.CreateSelectionRequest
    ) -> executor_pb2.CreateSelectionResponse

Dispatches a CreateSelection gRPC.

### `create_struct`

[View source](https://github.com/tensorflow/federated/blob/v0.87.0
Version 2.0, January 2004
Licensed under the Apache License, Version 2.0 (the)

    create_struct(
        request: executor_pb2.CreateStructRequest
    ) -> executor_pb2.CreateStructResponse

Dispatches a CreateStruct gRPC.

### `create_value`

[View source](https://github.com/tensorflow/federated/blob/v0.87.0
Version 2.0, January 2004
Licensed under the Apache License, Version 2.0 (the)

    create_value(
        request: executor_pb2.CreateValueRequest
    ) -> executor_pb2.CreateValueResponse

Dispatches a CreateValue gRPC.

### `dispose`

[View source](https://github.com/tensorflow/federated/blob/v0.87.0
Version 2.0, January 2004
Licensed under the Apache License, Version 2.0 (the)

    dispose(
        request: executor_pb2.DisposeRequest
    ) -> executor_pb2.DisposeResponse

Dispatches a Dispose gRPC.

### `dispose_executor`

[View source](https://github.com/tensorflow/federated/blob/v0.87.0
Version 2.0, January 2004
Licensed under the Apache License, Version 2.0 (the)

    dispose_executor(
        request: executor_pb2.DisposeExecutorRequest
    ) -> executor_pb2.DisposeExecutorResponse

Invokes `DisposeExecutor` in a remote TFF runtime.

### `get_executor`

[View source](https://github.com/tensorflow/federated/blob/v0.87.0
Version 2.0, January 2004
Licensed under the Apache License, Version 2.0 (the)

    get_executor(
        request: executor_pb2.GetExecutorRequest
    ) -> executor_pb2.GetExecutorResponse

Dispatches a GetExecutor gRPC.