Class: Google::Apis::MlV1::GoogleCloudMlV1ReplicaConfig
- Inherits:
-
Object
- Object
- Google::Apis::MlV1::GoogleCloudMlV1ReplicaConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/ml_v1/classes.rb,
lib/google/apis/ml_v1/representations.rb,
lib/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.
-
#container_args ⇒ Array<String>
Arguments to the entrypoint command.
-
#container_command ⇒ Array<String>
The command with which the replica's custom container is run.
-
#disk_config ⇒ Google::Apis::MlV1::GoogleCloudMlV1DiskConfig
Represents the config of disk options.
-
#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.
Constructor Details
#initialize(**args) ⇒ GoogleCloudMlV1ReplicaConfig
Returns a new instance of GoogleCloudMlV1ReplicaConfig.
2210 2211 2212 |
# File 'lib/google/apis/ml_v1/classes.rb', line 2210 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
2157 2158 2159 |
# File 'lib/google/apis/ml_v1/classes.rb', line 2157 def accelerator_config @accelerator_config end |
#container_args ⇒ Array<String>
Arguments to the entrypoint command. The following rules apply for
container_command and container_args: - If you do not supply command or args:
The defaults defined in the Docker image are used. - If you supply a command
but no args: The default EntryPoint and the default Cmd defined in the Docker
image are ignored. Your command is run without any arguments. - If you supply
only args: The default Entrypoint defined in the Docker image is run with the
args that you supplied. - If you supply a command and args: The default
Entrypoint and the default Cmd defined in the Docker image are ignored. Your
command is run with your args. It cannot be set if custom container image is
not provided. Note that this field and [TrainingInput.args] are mutually
exclusive, i.e., both cannot be set at the same time.
Corresponds to the JSON property containerArgs
2172 2173 2174 |
# File 'lib/google/apis/ml_v1/classes.rb', line 2172 def container_args @container_args end |
#container_command ⇒ Array<String>
The command with which the replica's custom container is run. If provided, it
will override default ENTRYPOINT of the docker image. If not provided, the
docker image's ENTRYPOINT is used. It cannot be set if custom container image
is not provided. Note that this field and [TrainingInput.args] are mutually
exclusive, i.e., both cannot be set at the same time.
Corresponds to the JSON property containerCommand
2181 2182 2183 |
# File 'lib/google/apis/ml_v1/classes.rb', line 2181 def container_command @container_command end |
#disk_config ⇒ Google::Apis::MlV1::GoogleCloudMlV1DiskConfig
Represents the config of disk options.
Corresponds to the JSON property diskConfig
2186 2187 2188 |
# File 'lib/google/apis/ml_v1/classes.rb', line 2186 def disk_config @disk_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
2193 2194 2195 |
# File 'lib/google/apis/ml_v1/classes.rb', line 2193 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
2208 2209 2210 |
# File 'lib/google/apis/ml_v1/classes.rb', line 2208 def tpu_tf_version @tpu_tf_version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2215 2216 2217 2218 2219 2220 2221 2222 |
# File 'lib/google/apis/ml_v1/classes.rb', line 2215 def update!(**args) @accelerator_config = args[:accelerator_config] if args.key?(:accelerator_config) @container_args = args[:container_args] if args.key?(:container_args) @container_command = args[:container_command] if args.key?(:container_command) @disk_config = args[:disk_config] if args.key?(:disk_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 |