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.
Instance Attribute Summary collapse
-
#count ⇒ Fixnum
The number of accelerators to attach to each machine running the job.
-
#type ⇒ String
The available types of accelerators.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudMlV1AcceleratorConfig
constructor
A new instance of GoogleCloudMlV1AcceleratorConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudMlV1AcceleratorConfig
Returns a new instance of GoogleCloudMlV1AcceleratorConfig
124 125 126 |
# File 'generated/google/apis/ml_v1/classes.rb', line 124 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
117 118 119 |
# File 'generated/google/apis/ml_v1/classes.rb', line 117 def count @count end |
#type ⇒ String
The available types of accelerators.
Corresponds to the JSON property type
122 123 124 |
# File 'generated/google/apis/ml_v1/classes.rb', line 122 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
129 130 131 132 |
# File 'generated/google/apis/ml_v1/classes.rb', line 129 def update!(**args) @count = args[:count] if args.key?(:count) @type = args[:type] if args.key?(:type) end |