Class: Google::Apis::TpuV2::AcceleratorConfig
- Inherits:
-
Object
- Object
- Google::Apis::TpuV2::AcceleratorConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/tpu_v2/classes.rb,
lib/google/apis/tpu_v2/representations.rb,
lib/google/apis/tpu_v2/representations.rb
Overview
A TPU accelerator configuration.
Instance Attribute Summary collapse
-
#topology ⇒ String
Required.
-
#type ⇒ String
Required.
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.
39 40 41 |
# File 'lib/google/apis/tpu_v2/classes.rb', line 39 def initialize(**args) update!(**args) end |
Instance Attribute Details
#topology ⇒ String
Required. Topology of TPU in chips.
Corresponds to the JSON property topology
32 33 34 |
# File 'lib/google/apis/tpu_v2/classes.rb', line 32 def topology @topology end |
#type ⇒ String
Required. Type of TPU.
Corresponds to the JSON property type
37 38 39 |
# File 'lib/google/apis/tpu_v2/classes.rb', line 37 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
44 45 46 47 |
# File 'lib/google/apis/tpu_v2/classes.rb', line 44 def update!(**args) @topology = args[:topology] if args.key?(:topology) @type = args[:type] if args.key?(:type) end |