Class: Google::Apis::MlV1::GoogleCloudMlV1AcceleratorConfig

Inherits:
Object
  • Object
show all
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. Note that the AcceleratorConfig could be used in both Jobs and Versions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudMlV1AcceleratorConfig

Returns a new instance of GoogleCloudMlV1AcceleratorConfig



126
127
128
# File 'generated/google/apis/ml_v1/classes.rb', line 126

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

Instance Attribute Details

#countFixnum

The number of accelerators to attach to each machine running the job. Corresponds to the JSON property count

Returns:

  • (Fixnum)


119
120
121
# File 'generated/google/apis/ml_v1/classes.rb', line 119

def count
  @count
end

#typeString

The type of accelerator to use. Corresponds to the JSON property type

Returns:

  • (String)


124
125
126
# File 'generated/google/apis/ml_v1/classes.rb', line 124

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



131
132
133
134
# File 'generated/google/apis/ml_v1/classes.rb', line 131

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