MCPcopy Create free account
hub / github.com/apple/axlearn / SampleOutputs

Class SampleOutputs

axlearn/common/decoding.py:817–823  ·  view source on GitHub ↗

Output values after performing sample decoding.

Source from the content-addressed store, hash-verified

815
816
817class SampleOutputs(flax_struct.PyTreeNode):
818 """Output values after performing sample decoding."""
819
820 # Sequences which may or may not end with eos_id.
821 sequences: Tensor # int32: [batch_size, num_decodes, max_decode_len].
822 # Scores corresponding to sequences above.
823 token_scores: Tensor # float32: [batch_size, num_decodes, max_decode_len].
824
825
826class StopDecodingCondition(Protocol):

Callers 1

sample_decodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected