Class: Google::Apis::NotebooksV1::RuntimeAcceleratorConfig

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RuntimeAcceleratorConfig

Returns a new instance of RuntimeAcceleratorConfig.



1758
1759
1760
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1758

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#core_countFixnum

Count of cores of this accelerator. Corresponds to the JSON property coreCount

Returns:

  • (Fixnum)


1751
1752
1753
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1751

def core_count
  @core_count
end

#typeString

Accelerator model. Corresponds to the JSON property type

Returns:

  • (String)


1756
1757
1758
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1756

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1763
1764
1765
1766
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1763

def update!(**args)
  @core_count = args[:core_count] if args.key?(:core_count)
  @type = args[:type] if args.key?(:type)
end