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

Method step

fairseq/search.py:28–48  ·  view source on GitHub ↗

Take a single search step. Args: step: the current search step, starting at 0 lprobs: (bsz x input_beam_size x vocab_size) the model's log-probabilities over the vocabulary at the current step scores: (bsz x input_beam_size x step)

(self, step, lprobs, scores)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 5

generateMethod · 0.45
stepMethod · 0.45
stepMethod · 0.45
train_stepMethod · 0.45
lr_stepMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected