Class: Google::Apis::NotebooksV1::AcceleratorConfig
- Inherits:
-
Object
- Object
- Google::Apis::NotebooksV1::AcceleratorConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/notebooks_v1/classes.rb,
generated/google/apis/notebooks_v1/representations.rb,
generated/google/apis/notebooks_v1/representations.rb
Overview
Definition of a hardware accelerator. Note that not all combinations of type
and core_count
are valid. Check GPUs on Compute Engine to find a valid combination. TPUs are not supported.
Instance Attribute Summary collapse
-
#core_count ⇒ Fixnum
Count of cores of this accelerator.
-
#type ⇒ String
Type of this accelerator.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AcceleratorConfig
constructor
A new instance of AcceleratorConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AcceleratorConfig
Returns a new instance of AcceleratorConfig.
41 42 43 |
# File 'generated/google/apis/notebooks_v1/classes.rb', line 41 def initialize(**args) update!(**args) end |
Instance Attribute Details
#core_count ⇒ Fixnum
Count of cores of this accelerator.
Corresponds to the JSON property coreCount
34 35 36 |
# File 'generated/google/apis/notebooks_v1/classes.rb', line 34 def core_count @core_count end |
#type ⇒ String
Type of this accelerator.
Corresponds to the JSON property type
39 40 41 |
# File 'generated/google/apis/notebooks_v1/classes.rb', line 39 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
46 47 48 49 |
# File 'generated/google/apis/notebooks_v1/classes.rb', line 46 def update!(**args) @core_count = args[:core_count] if args.key?(:core_count) @type = args[:type] if args.key?(:type) end |