Class: Google::Apis::MlV1::GoogleCloudMlV1AcceleratorConfig
- Inherits:
-
Object
- Object
- Google::Apis::MlV1::GoogleCloudMlV1AcceleratorConfig
- 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 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.
Instance Attribute Summary collapse
-
#count ⇒ Fixnum
The number of accelerators to attach to each machine running the job.
-
#type ⇒ String
The type of accelerator to use.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudMlV1AcceleratorConfig
constructor
A new instance of GoogleCloudMlV1AcceleratorConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudMlV1AcceleratorConfig
Returns a new instance of GoogleCloudMlV1AcceleratorConfig.
483 484 485 |
# File 'generated/google/apis/ml_v1/classes.rb', line 483 def initialize(**args) update!(**args) end |
Instance Attribute Details
#count ⇒ Fixnum
The number of accelerators to attach to each machine running the job.
Corresponds to the JSON property count
476 477 478 |
# File 'generated/google/apis/ml_v1/classes.rb', line 476 def count @count end |
#type ⇒ String
The type of accelerator to use.
Corresponds to the JSON property type
481 482 483 |
# File 'generated/google/apis/ml_v1/classes.rb', line 481 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
488 489 490 491 |
# File 'generated/google/apis/ml_v1/classes.rb', line 488 def update!(**args) @count = args[:count] if args.key?(:count) @type = args[:type] if args.key?(:type) end |