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

Method is_finished

fairseq/sequence_generator.py:186–195  ·  view source on GitHub ↗

Check whether we've finished generation for a given sentence, by comparing the worst score among finalized hypotheses to the best possible score among unfinalized hypotheses.

(sent, step, unfin_idx)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected