Class: Google::Apis::MlV1::GoogleCloudMlV1ReplicaConfig
- Inherits:
-
Object
- Object
- Google::Apis::MlV1::GoogleCloudMlV1ReplicaConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/ml_v1/classes.rb,
generated/google/apis/ml_v1/representations.rb,
generated/google/apis/ml_v1/representations.rb
Overview
Represents the configuration for a replica in a cluster.
Instance Attribute Summary collapse
-
#accelerator_config ⇒ Google::Apis::MlV1::GoogleCloudMlV1AcceleratorConfig
Represents a hardware accelerator request config.
-
#image_uri ⇒ String
The Docker image to run on the replica.
-
#tpu_tf_version ⇒ String
The AI Platform runtime version that includes a TensorFlow version matching the one used in the custom container.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudMlV1ReplicaConfig
constructor
A new instance of GoogleCloudMlV1ReplicaConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudMlV1ReplicaConfig
Returns a new instance of GoogleCloudMlV1ReplicaConfig.
1960 1961 1962 |
# File 'generated/google/apis/ml_v1/classes.rb', line 1960 def initialize(**args) update!(**args) end |
Instance Attribute Details
#accelerator_config ⇒ Google::Apis::MlV1::GoogleCloudMlV1AcceleratorConfig
Represents a hardware accelerator request config.
Note that the AcceleratorConfig can be used in both Jobs and Versions.
Learn more about accelerators for training and
accelerators for online
prediction.
Corresponds to the JSON property acceleratorConfig
1933 1934 1935 |
# File 'generated/google/apis/ml_v1/classes.rb', line 1933 def accelerator_config @accelerator_config end |
#image_uri ⇒ String
The Docker image to run on the replica. This image must be in Container
Registry. Learn more about configuring custom
containers.
Corresponds to the JSON property imageUri
1940 1941 1942 |
# File 'generated/google/apis/ml_v1/classes.rb', line 1940 def image_uri @image_uri end |
#tpu_tf_version ⇒ String
The AI Platform runtime version that includes a TensorFlow version matching
the one used in the custom container. This field is required if the replica
is a TPU worker that uses a custom container. Otherwise, do not specify
this field. This must be a runtime version that currently supports
training with
TPUs.
Note that the version of TensorFlow included in a runtime version may
differ from the numbering of the runtime version itself, because it may
have a different patch
version.
In this field, you must specify the runtime version (TensorFlow minor
version). For example, if your custom container runs TensorFlow 1.x.y
,
specify 1.x
.
Corresponds to the JSON property tpuTfVersion
1958 1959 1960 |
# File 'generated/google/apis/ml_v1/classes.rb', line 1958 def tpu_tf_version @tpu_tf_version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1965 1966 1967 1968 1969 |
# File 'generated/google/apis/ml_v1/classes.rb', line 1965 def update!(**args) @accelerator_config = args[:accelerator_config] if args.key?(:accelerator_config) @image_uri = args[:image_uri] if args.key?(:image_uri) @tpu_tf_version = args[:tpu_tf_version] if args.key?(:tpu_tf_version) end |