Class: Google::Apis::NotebooksV1::RuntimeAcceleratorConfig
- Inherits:
-
Object
- Object
- Google::Apis::NotebooksV1::RuntimeAcceleratorConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/notebooks_v1/classes.rb,
lib/google/apis/notebooks_v1/representations.rb,
lib/google/apis/notebooks_v1/representations.rb
Overview
Definition of the types of hardware accelerators that can be used. Definition
of the types of hardware accelerators that can be used. See Compute Engine
AcceleratorTypes. Examples: * nvidia-tesla-k80 * nvidia-tesla-p100 *
nvidia-tesla-v100 * nvidia-tesla-p4 * nvidia-tesla-t4 * nvidia-tesla-
a100
Instance Attribute Summary collapse
-
#core_count ⇒ Fixnum
Count of cores of this accelerator.
-
#type ⇒ String
Accelerator model.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RuntimeAcceleratorConfig
constructor
A new instance of RuntimeAcceleratorConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RuntimeAcceleratorConfig
Returns a new instance of RuntimeAcceleratorConfig.
2024 2025 2026 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2024 def initialize(**args) update!(**args) end |
Instance Attribute Details
#core_count ⇒ Fixnum
Count of cores of this accelerator.
Corresponds to the JSON property coreCount
2017 2018 2019 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2017 def core_count @core_count end |
#type ⇒ String
Accelerator model.
Corresponds to the JSON property type
2022 2023 2024 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2022 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2029 2030 2031 2032 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2029 def update!(**args) @core_count = args[:core_count] if args.key?(:core_count) @type = args[:type] if args.key?(:type) end |