Class: Google::Apis::LanguageV2::XpsImageModelServingSpec

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

Overview

Serving specification for image models.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ XpsImageModelServingSpec

Returns a new instance of XpsImageModelServingSpec.



2439
2440
2441
# File 'lib/google/apis/language_v2/classes.rb', line 2439

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

Instance Attribute Details

#model_throughput_estimationArray<Google::Apis::LanguageV2::XpsImageModelServingSpecModelThroughputEstimation>

Populate under uCAIP request scope. Corresponds to the JSON property modelThroughputEstimation



2425
2426
2427
# File 'lib/google/apis/language_v2/classes.rb', line 2425

def model_throughput_estimation
  @model_throughput_estimation
end

#node_qpsFloat

An estimated value of how much traffic a node can serve. Populated for AutoMl request only. Corresponds to the JSON property nodeQps

Returns:

  • (Float)


2431
2432
2433
# File 'lib/google/apis/language_v2/classes.rb', line 2431

def node_qps
  @node_qps
end

#tf_runtime_versionString

The fields below are only populated under uCAIP request scope. https://

cloud.google.com/ml-engine/docs/runtime-version-list Corresponds to the JSON property tfRuntimeVersion

Returns:

  • (String)


2437
2438
2439
# File 'lib/google/apis/language_v2/classes.rb', line 2437

def tf_runtime_version
  @tf_runtime_version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2444
2445
2446
2447
2448
# File 'lib/google/apis/language_v2/classes.rb', line 2444

def update!(**args)
  @model_throughput_estimation = args[:model_throughput_estimation] if args.key?(:model_throughput_estimation)
  @node_qps = args[:node_qps] if args.key?(:node_qps)
  @tf_runtime_version = args[:tf_runtime_version] if args.key?(:tf_runtime_version)
end