Class: Google::Apis::NotebooksV1::SchedulerAcceleratorConfig

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 a hardware accelerator. Note that not all combinations of type and core_count are valid. See GPUs on Compute Engine to find a valid combination. TPUs are not supported.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SchedulerAcceleratorConfig

Returns a new instance of SchedulerAcceleratorConfig.



2697
2698
2699
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2697

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)


2690
2691
2692
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2690

def core_count
  @core_count
end

#typeString

Type of this accelerator. Corresponds to the JSON property type

Returns:

  • (String)


2695
2696
2697
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2695

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2702
2703
2704
2705
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2702

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