Class: Aws::SageMakerTrainingSessionRuntime::Types::SampleOperationResult
- Inherits:
-
Struct
- Object
- Struct
- Aws::SageMakerTrainingSessionRuntime::Types::SampleOperationResult
- Defined in:
- gems/aws-sdk-sagemakertrainingsessionruntime/lib/aws-sdk-sagemakertrainingsessionruntime/types.rb
Overview
SampleOperationResult is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of SampleOperationResult corresponding to the set member.
The result of a completed sampling operation. Exactly one member is populated, corresponding to the operation type that was submitted.
Defined Under Namespace
Classes: ComputeLogprobs, LoadWeightsForSampling, Sample, Unknown
Constant Summary collapse
- SENSITIVE =
[:sample]
Instance Attribute Summary collapse
-
#compute_logprobs ⇒ Types::ComputeLogprobsResult
The computed log-probabilities for the prompt tokens.
-
#load_weights_for_sampling ⇒ Types::LoadWeightsForSamplingResult
The result from loading weights for sampling.
-
#sample ⇒ Types::SampleResponse
The generated text samples from the model.
-
#unknown ⇒ Object
Returns the value of attribute unknown.
Instance Attribute Details
#compute_logprobs ⇒ Types::ComputeLogprobsResult
The computed log-probabilities for the prompt tokens.
793 794 795 796 797 798 799 800 801 802 803 804 805 806 |
# File 'gems/aws-sdk-sagemakertrainingsessionruntime/lib/aws-sdk-sagemakertrainingsessionruntime/types.rb', line 793 class SampleOperationResult < Struct.new( :sample, :compute_logprobs, :load_weights_for_sampling, :unknown) SENSITIVE = [:sample] include Aws::Structure include Aws::Structure::Union class Sample < SampleOperationResult; end class ComputeLogprobs < SampleOperationResult; end class LoadWeightsForSampling < SampleOperationResult; end class Unknown < SampleOperationResult; end end |
#load_weights_for_sampling ⇒ Types::LoadWeightsForSamplingResult
The result from loading weights for sampling.
793 794 795 796 797 798 799 800 801 802 803 804 805 806 |
# File 'gems/aws-sdk-sagemakertrainingsessionruntime/lib/aws-sdk-sagemakertrainingsessionruntime/types.rb', line 793 class SampleOperationResult < Struct.new( :sample, :compute_logprobs, :load_weights_for_sampling, :unknown) SENSITIVE = [:sample] include Aws::Structure include Aws::Structure::Union class Sample < SampleOperationResult; end class ComputeLogprobs < SampleOperationResult; end class LoadWeightsForSampling < SampleOperationResult; end class Unknown < SampleOperationResult; end end |
#sample ⇒ Types::SampleResponse
The generated text samples from the model.
793 794 795 796 797 798 799 800 801 802 803 804 805 806 |
# File 'gems/aws-sdk-sagemakertrainingsessionruntime/lib/aws-sdk-sagemakertrainingsessionruntime/types.rb', line 793 class SampleOperationResult < Struct.new( :sample, :compute_logprobs, :load_weights_for_sampling, :unknown) SENSITIVE = [:sample] include Aws::Structure include Aws::Structure::Union class Sample < SampleOperationResult; end class ComputeLogprobs < SampleOperationResult; end class LoadWeightsForSampling < SampleOperationResult; end class Unknown < SampleOperationResult; end end |
#unknown ⇒ Object
Returns the value of attribute unknown
793 794 795 |
# File 'gems/aws-sdk-sagemakertrainingsessionruntime/lib/aws-sdk-sagemakertrainingsessionruntime/types.rb', line 793 def unknown @unknown end |