Classes
TpuClient
Manages TPU nodes and other resources.
TpuConnection
The TpuConnection
object for TpuClient
.
TpuConnectionIdempotencyPolicy
TpuLimitedErrorCountRetryPolicy
A retry policy for TpuConnection
based on counting errors.
TpuLimitedTimeRetryPolicy
A retry policy for TpuConnection
based on elapsed time.
TpuRetryPolicy
The retry policy for TpuConnection
.
Structs
TpuBackoffPolicyOption
Use with google::cloud::Options
to configure the backoff policy.
TpuConnectionIdempotencyPolicyOption
Use with google::cloud::Options
to configure which operations are retried.
TpuPollingPolicyOption
Use with google::cloud::Options
to configure the long-running operations polling policy.
TpuRetryPolicyOption
Use with google::cloud::Options
to configure the retry policy.
Functions
MakeTpuConnection(Options)
A factory function to construct an object of type TpuConnection
.
The returned connection object should not be used directly; instead it should be passed as an argument to the constructor of TpuClient.
The optional options
argument may be used to configure aspects of the returned TpuConnection
. Expected options are any of the types in the following option lists:
Parameter | |
---|---|
Name | Description |
options |
(optional) Configure the |
Returns | |
---|---|
Type | Description |
std::shared_ptr< TpuConnection > |
MakeDefaultTpuConnectionIdempotencyPolicy()
Returns | |
---|---|
Type | Description |
std::unique_ptr< TpuConnectionIdempotencyPolicy > |