Class: Google::Apis::TpuV2alpha1::AcceleratorConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/tpu_v2alpha1/classes.rb,
lib/google/apis/tpu_v2alpha1/representations.rb,
lib/google/apis/tpu_v2alpha1/representations.rb

Overview

A TPU accelerator configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AcceleratorConfig

Returns a new instance of AcceleratorConfig.



39
40
41
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 39

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

Instance Attribute Details

#topologyString

Required. Topology of TPU in chips. Corresponds to the JSON property topology

Returns:

  • (String)


32
33
34
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 32

def topology
  @topology
end

#typeString

Required. Type of TPU. Corresponds to the JSON property type

Returns:

  • (String)


37
38
39
# File 'lib/google/apis/tpu_v2alpha1/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_v2alpha1/classes.rb', line 44

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