Class: Google::Apis::LanguageV1::TpuMetric

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TpuMetric

Returns a new instance of TpuMetric.



1275
1276
1277
# File 'lib/google/apis/language_v1/classes.rb', line 1275

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

Instance Attribute Details

#tpu_secFixnum

Required. Seconds of TPU usage, e.g. 3600. Corresponds to the JSON property tpuSec

Returns:

  • (Fixnum)


1268
1269
1270
# File 'lib/google/apis/language_v1/classes.rb', line 1268

def tpu_sec
  @tpu_sec
end

#tpu_typeString

Required. Type of TPU, e.g. TPU_V2, TPU_V3_POD. Corresponds to the JSON property tpuType

Returns:

  • (String)


1273
1274
1275
# File 'lib/google/apis/language_v1/classes.rb', line 1273

def tpu_type
  @tpu_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1280
1281
1282
1283
# File 'lib/google/apis/language_v1/classes.rb', line 1280

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