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.
2061 2062 2063 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2061 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
2059 2060 2061 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2059 def rate @rate end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2066 2067 2068 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2066 def update!(**args) @rate = args[:rate] if args.key?(:rate) end |