Cloud TPU v1 API - Class TpuSettings (2.3.0)

public sealed class TpuSettings : ServiceSettingsBase

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

Settings for TpuClient instances.

Inheritance

object > ServiceSettingsBase > TpuSettings

Namespace

Google.Cloud.Tpu.V1

Assembly

Google.Cloud.Tpu.V1.dll

Constructors

TpuSettings()

public TpuSettings()

Constructs a new TpuSettings object with default settings.

Properties

CreateNodeOperationsSettings

public OperationsSettings CreateNodeOperationsSettings { get; set; }

Long Running Operation settings for calls to TpuClient.CreateNode and TpuClient.CreateNodeAsync .

Property Value
Type Description
OperationsSettings
Remarks

Uses default PollSettings of:

  • Initial delay: 20 seconds.
  • Delay multiplier: 1.5
  • Maximum delay: 45 seconds.
  • Total timeout: 24 hours.

CreateNodeSettings

public CallSettings CreateNodeSettings { get; set; }

CallSettings for synchronous and asynchronous calls to TpuClient.CreateNode and TpuClient.CreateNodeAsync.

Property Value
Type Description
CallSettings
Remarks
  • This call will not be retried.
  • Timeout: 60 seconds.

DeleteNodeOperationsSettings

public OperationsSettings DeleteNodeOperationsSettings { get; set; }

Long Running Operation settings for calls to TpuClient.DeleteNode and TpuClient.DeleteNodeAsync .

Property Value
Type Description
OperationsSettings
Remarks

Uses default PollSettings of:

  • Initial delay: 20 seconds.
  • Delay multiplier: 1.5
  • Maximum delay: 45 seconds.
  • Total timeout: 24 hours.

DeleteNodeSettings

public CallSettings DeleteNodeSettings { get; set; }

CallSettings for synchronous and asynchronous calls to TpuClient.DeleteNode and TpuClient.DeleteNodeAsync.

Property Value
Type Description
CallSettings
Remarks
  • This call will not be retried.
  • Timeout: 60 seconds.

GetAcceleratorTypeSettings

public CallSettings GetAcceleratorTypeSettings { get; set; }

CallSettings for synchronous and asynchronous calls to TpuClient.GetAcceleratorType and TpuClient.GetAcceleratorTypeAsync.

Property Value
Type Description
CallSettings
Remarks
  • This call will not be retried.
  • Timeout: 60 seconds.

GetNodeSettings

public CallSettings GetNodeSettings { get; set; }

CallSettings for synchronous and asynchronous calls to TpuClient.GetNode and TpuClient.GetNodeAsync.

Property Value
Type Description
CallSettings
Remarks
  • This call will not be retried.
  • Timeout: 60 seconds.

GetTensorFlowVersionSettings

public CallSettings GetTensorFlowVersionSettings { get; set; }

CallSettings for synchronous and asynchronous calls to TpuClient.GetTensorFlowVersion and TpuClient.GetTensorFlowVersionAsync.

Property Value
Type Description
CallSettings
Remarks
  • This call will not be retried.
  • Timeout: 60 seconds.

ListAcceleratorTypesSettings

public CallSettings ListAcceleratorTypesSettings { get; set; }

CallSettings for synchronous and asynchronous calls to TpuClient.ListAcceleratorTypes and TpuClient.ListAcceleratorTypesAsync.

Property Value
Type Description
CallSettings
Remarks
  • This call will not be retried.
  • Timeout: 60 seconds.

ListNodesSettings

public CallSettings ListNodesSettings { get; set; }

CallSettings for synchronous and asynchronous calls to TpuClient.ListNodes and TpuClient.ListNodesAsync.

Property Value
Type Description
CallSettings
Remarks
  • This call will not be retried.
  • Timeout: 60 seconds.

ListTensorFlowVersionsSettings

public CallSettings ListTensorFlowVersionsSettings { get; set; }

CallSettings for synchronous and asynchronous calls to TpuClient.ListTensorFlowVersions and TpuClient.ListTensorFlowVersionsAsync.

Property Value
Type Description
CallSettings
Remarks
  • This call will not be retried.
  • Timeout: 60 seconds.

LocationsSettings

public LocationsSettings LocationsSettings { get; set; }

The settings to use for the LocationsClient associated with the client.

Property Value
Type Description
LocationsSettings

ReimageNodeOperationsSettings

public OperationsSettings ReimageNodeOperationsSettings { get; set; }

Long Running Operation settings for calls to TpuClient.ReimageNode and TpuClient.ReimageNodeAsync .

Property Value
Type Description
OperationsSettings
Remarks

Uses default PollSettings of:

  • Initial delay: 20 seconds.
  • Delay multiplier: 1.5
  • Maximum delay: 45 seconds.
  • Total timeout: 24 hours.

ReimageNodeSettings

public CallSettings ReimageNodeSettings { get; set; }

CallSettings for synchronous and asynchronous calls to TpuClient.ReimageNode and TpuClient.ReimageNodeAsync.

Property Value
Type Description
CallSettings
Remarks
  • This call will not be retried.
  • Timeout: 60 seconds.

StartNodeOperationsSettings

public OperationsSettings StartNodeOperationsSettings { get; set; }

Long Running Operation settings for calls to TpuClient.StartNode and TpuClient.StartNodeAsync.

Property Value
Type Description
OperationsSettings
Remarks

Uses default PollSettings of:

  • Initial delay: 20 seconds.
  • Delay multiplier: 1.5
  • Maximum delay: 45 seconds.
  • Total timeout: 24 hours.

StartNodeSettings

public CallSettings StartNodeSettings { get; set; }

CallSettings for synchronous and asynchronous calls to TpuClient.StartNode and TpuClient.StartNodeAsync.

Property Value
Type Description
CallSettings
Remarks
  • This call will not be retried.
  • Timeout: 60 seconds.

StopNodeOperationsSettings

public OperationsSettings StopNodeOperationsSettings { get; set; }

Long Running Operation settings for calls to TpuClient.StopNode and TpuClient.StopNodeAsync.

Property Value
Type Description
OperationsSettings
Remarks

Uses default PollSettings of:

  • Initial delay: 20 seconds.
  • Delay multiplier: 1.5
  • Maximum delay: 45 seconds.
  • Total timeout: 24 hours.

StopNodeSettings

public CallSettings StopNodeSettings { get; set; }

CallSettings for synchronous and asynchronous calls to TpuClient.StopNode and TpuClient.StopNodeAsync.

Property Value
Type Description
CallSettings
Remarks
  • This call will not be retried.
  • Timeout: 60 seconds.

Methods

Clone()

public TpuSettings Clone()

Creates a deep clone of this object, with all the same property values.

Returns
Type Description
TpuSettings

A deep clone of this TpuSettings object.

GetDefault()

public static TpuSettings GetDefault()

Get a new instance of the default TpuSettings.

Returns
Type Description
TpuSettings

A new instance of the default TpuSettings.