Cloud TPU v1 API - Class Tpu.TpuBase (2.3.0)

[BindServiceMethod(typeof(Tpu), "BindService")]
public abstract class Tpu.TpuBase

Reference documentation and code samples for the Cloud TPU v1 API class Tpu.TpuBase.

Base class for server-side implementations of Tpu

Inheritance

object > Tpu.TpuBase

Namespace

Google.Cloud.Tpu.V1

Assembly

Google.Cloud.Tpu.V1.dll

Methods

CreateNode(CreateNodeRequest, ServerCallContext)

public virtual Task<Operation> CreateNode(CreateNodeRequest request, ServerCallContext context)

Creates a node.

Parameters
Name Description
request CreateNodeRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskOperation

The response to send back to the client (wrapped by a task).

DeleteNode(DeleteNodeRequest, ServerCallContext)

public virtual Task<Operation> DeleteNode(DeleteNodeRequest request, ServerCallContext context)

Deletes a node.

Parameters
Name Description
request DeleteNodeRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskOperation

The response to send back to the client (wrapped by a task).

GetAcceleratorType(GetAcceleratorTypeRequest, ServerCallContext)

public virtual Task<AcceleratorType> GetAcceleratorType(GetAcceleratorTypeRequest request, ServerCallContext context)

Gets AcceleratorType.

Parameters
Name Description
request GetAcceleratorTypeRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskAcceleratorType

The response to send back to the client (wrapped by a task).

GetNode(GetNodeRequest, ServerCallContext)

public virtual Task<Node> GetNode(GetNodeRequest request, ServerCallContext context)

Gets the details of a node.

Parameters
Name Description
request GetNodeRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskNode

The response to send back to the client (wrapped by a task).

GetTensorFlowVersion(GetTensorFlowVersionRequest, ServerCallContext)

public virtual Task<TensorFlowVersion> GetTensorFlowVersion(GetTensorFlowVersionRequest request, ServerCallContext context)

Gets TensorFlow Version.

Parameters
Name Description
request GetTensorFlowVersionRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskTensorFlowVersion

The response to send back to the client (wrapped by a task).

ListAcceleratorTypes(ListAcceleratorTypesRequest, ServerCallContext)

public virtual Task<ListAcceleratorTypesResponse> ListAcceleratorTypes(ListAcceleratorTypesRequest request, ServerCallContext context)

Lists accelerator types supported by this API.

Parameters
Name Description
request ListAcceleratorTypesRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskListAcceleratorTypesResponse

The response to send back to the client (wrapped by a task).

ListNodes(ListNodesRequest, ServerCallContext)

public virtual Task<ListNodesResponse> ListNodes(ListNodesRequest request, ServerCallContext context)

Lists nodes.

Parameters
Name Description
request ListNodesRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskListNodesResponse

The response to send back to the client (wrapped by a task).

ListTensorFlowVersions(ListTensorFlowVersionsRequest, ServerCallContext)

public virtual Task<ListTensorFlowVersionsResponse> ListTensorFlowVersions(ListTensorFlowVersionsRequest request, ServerCallContext context)

List TensorFlow versions supported by this API.

Parameters
Name Description
request ListTensorFlowVersionsRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskListTensorFlowVersionsResponse

The response to send back to the client (wrapped by a task).

ReimageNode(ReimageNodeRequest, ServerCallContext)

public virtual Task<Operation> ReimageNode(ReimageNodeRequest request, ServerCallContext context)

Reimages a node's OS.

Parameters
Name Description
request ReimageNodeRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskOperation

The response to send back to the client (wrapped by a task).

StartNode(StartNodeRequest, ServerCallContext)

public virtual Task<Operation> StartNode(StartNodeRequest request, ServerCallContext context)

Starts a node.

Parameters
Name Description
request StartNodeRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskOperation

The response to send back to the client (wrapped by a task).

StopNode(StopNodeRequest, ServerCallContext)

public virtual Task<Operation> StopNode(StopNodeRequest request, ServerCallContext context)

Stops a node, this operation is only available with single TPU nodes.

Parameters
Name Description
request StopNodeRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskOperation

The response to send back to the client (wrapped by a task).