Class: Aws::SageMakerTrainingSessionRuntime::Types::SampleResponse
- Inherits:
-
Struct
- Object
- Struct
- Aws::SageMakerTrainingSessionRuntime::Types::SampleResponse
- Defined in:
- gems/aws-sdk-sagemakertrainingsessionruntime/lib/aws-sdk-sagemakertrainingsessionruntime/types.rb
Overview
The response containing generated samples and optional log-probabilities.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#prompt_logprobs ⇒ Array<Float>
The per-token log-probabilities for the input prompt.
-
#sequences ⇒ Array<Types::SampledSequence>
The list of generated sequences.
-
#topk_prompt_logprobs ⇒ Array<Array<Types::TokenLogprob>>
The top-k log-probabilities per prompt token, as a list of lists.
Instance Attribute Details
#prompt_logprobs ⇒ Array<Float>
The per-token log-probabilities for the input prompt. Populated only
when includePromptLogprobs is true.
827 828 829 830 831 832 833 |
# File 'gems/aws-sdk-sagemakertrainingsessionruntime/lib/aws-sdk-sagemakertrainingsessionruntime/types.rb', line 827 class SampleResponse < Struct.new( :sequences, :prompt_logprobs, :topk_prompt_logprobs) SENSITIVE = [] include Aws::Structure end |
#sequences ⇒ Array<Types::SampledSequence>
The list of generated sequences.
827 828 829 830 831 832 833 |
# File 'gems/aws-sdk-sagemakertrainingsessionruntime/lib/aws-sdk-sagemakertrainingsessionruntime/types.rb', line 827 class SampleResponse < Struct.new( :sequences, :prompt_logprobs, :topk_prompt_logprobs) SENSITIVE = [] include Aws::Structure end |
#topk_prompt_logprobs ⇒ Array<Array<Types::TokenLogprob>>
The top-k log-probabilities per prompt token, as a list of lists.
Populated only when topkPromptLogprobs is greater than 0.
827 828 829 830 831 832 833 |
# File 'gems/aws-sdk-sagemakertrainingsessionruntime/lib/aws-sdk-sagemakertrainingsessionruntime/types.rb', line 827 class SampleResponse < Struct.new( :sequences, :prompt_logprobs, :topk_prompt_logprobs) SENSITIVE = [] include Aws::Structure end |