Class: Google::Apis::LanguageV1beta2::XpsImageModelServingSpecModelThroughputEstimation

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ XpsImageModelServingSpecModelThroughputEstimation

Returns a new instance of XpsImageModelServingSpecModelThroughputEstimation.



2781
2782
2783
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2781

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

Instance Attribute Details

#compute_engine_accelerator_typeString

Corresponds to the JSON property computeEngineAcceleratorType

Returns:

  • (String)


2764
2765
2766
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2764

def compute_engine_accelerator_type
  @compute_engine_accelerator_type
end

#latency_in_millisecondsFloat

Estimated latency. Corresponds to the JSON property latencyInMilliseconds

Returns:

  • (Float)


2769
2770
2771
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2769

def latency_in_milliseconds
  @latency_in_milliseconds
end

#node_qpsFloat

The approximate qps a deployed node can serve. Corresponds to the JSON property nodeQps

Returns:

  • (Float)


2774
2775
2776
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2774

def node_qps
  @node_qps
end

#servomatic_partition_typeString

Corresponds to the JSON property servomaticPartitionType

Returns:

  • (String)


2779
2780
2781
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2779

def servomatic_partition_type
  @servomatic_partition_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2786
2787
2788
2789
2790
2791
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2786

def update!(**args)
  @compute_engine_accelerator_type = args[:compute_engine_accelerator_type] if args.key?(:compute_engine_accelerator_type)
  @latency_in_milliseconds = args[:latency_in_milliseconds] if args.key?(:latency_in_milliseconds)
  @node_qps = args[:node_qps] if args.key?(:node_qps)
  @servomatic_partition_type = args[:servomatic_partition_type] if args.key?(:servomatic_partition_type)
end