Class: Google::Apis::LanguageV1beta2::TpuMetric
- Inherits:
-
Object
- Object
- Google::Apis::LanguageV1beta2::TpuMetric
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/language_v1beta2/classes.rb,
lib/google/apis/language_v1beta2/representations.rb,
lib/google/apis/language_v1beta2/representations.rb
Instance Attribute Summary collapse
-
#tpu_sec ⇒ Fixnum
Required.
-
#tpu_type ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TpuMetric
constructor
A new instance of TpuMetric.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TpuMetric
Returns a new instance of TpuMetric.
1295 1296 1297 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1295 def initialize(**args) update!(**args) end |
Instance Attribute Details
#tpu_sec ⇒ Fixnum
Required. Seconds of TPU usage, e.g. 3600.
Corresponds to the JSON property tpuSec
1288 1289 1290 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1288 def tpu_sec @tpu_sec end |
#tpu_type ⇒ String
Required. Type of TPU, e.g. TPU_V2, TPU_V3_POD.
Corresponds to the JSON property tpuType
1293 1294 1295 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1293 def tpu_type @tpu_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1300 1301 1302 1303 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1300 def update!(**args) @tpu_sec = args[:tpu_sec] if args.key?(:tpu_sec) @tpu_type = args[:tpu_type] if args.key?(:tpu_type) end |