Class: Aws::SageMakerTrainingSessionRuntime::Types::SampleResponse

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

Instance Attribute Details

#prompt_logprobs ⇒ Array<Float>

The per-token log-probabilities for the input prompt. Populated only when includePromptLogprobs is true.

Returns:

  • (Array<Float>)


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.

Returns:



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.

Returns:



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