MCPcopy Create free account
hub / github.com/HA-Transformer/MAT / finalize_hypos

Method finalize_hypos

fairseq/sequence_generator.py:197–277  ·  view source on GitHub ↗

Finalize the given hypotheses at this step, while keeping the total number of finalized hypotheses per sentence <= beam_size. Note: the input must be in the desired finalization order, so that hypotheses that appear earlier in the input are preferred

(step, bbsz_idx, eos_scores)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

addMethod · 0.45

Tested by

no test coverage detected