Class: Google::Apis::DataflowV1b3::GpuUtilization
- Inherits:
-
Object
- Object
- Google::Apis::DataflowV1b3::GpuUtilization
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dataflow_v1b3/classes.rb,
lib/google/apis/dataflow_v1b3/representations.rb,
lib/google/apis/dataflow_v1b3/representations.rb
Overview
Utilization details about the GPU.
Instance Attribute Summary collapse
-
#rate ⇒ Float
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GpuUtilization
constructor
A new instance of GpuUtilization.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GpuUtilization
Returns a new instance of GpuUtilization.
2047 2048 2049 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2047 def initialize(**args) update!(**args) end |
Instance Attribute Details
#rate ⇒ Float
Required. GPU utilization rate of any kernel over the last sample period in
the range of [0, 1].
Corresponds to the JSON property rate
2045 2046 2047 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2045 def rate @rate end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2052 2053 2054 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2052 def update!(**args) @rate = args[:rate] if args.key?(:rate) end |