MCPcopy Create free account
hub / github.com/tensorflow/lingvo / BeamSearchDecode

Method BeamSearchDecode

lingvo/core/base_decoder.py:344–357  ·  view source on GitHub ↗

Performs beam search based decoding. Args: encoder_outputs: the outputs of the encoder. num_hyps_per_beam_override: If set to a value <= 0, this parameter is ignored. If set to a value > 0, then this value will be used to override p.num_hyps_per_beam. Returns:

(self, encoder_outputs, num_hyps_per_beam_override=0)