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

Method _ExpandToNumHyps

lingvo/tasks/mt/decoder.py:381–395  ·  view source on GitHub ↗

Repeat each value according to num hyps. Args: source_enc_len: source encoder length; int [batch]. num_hyps_per_beam: number of hypotheses Returns: New version of source_enc_len; int [batch * num_hyps_per_beam]. Target_batch is (num_hyps_per_beam * batch). Exa

(self, source_enc_len, num_hyps_per_beam)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 7

_FPropMethod · 0.80
ExtendStepMethod · 0.80
_FPropMethod · 0.80
test_ExpandToNumHypsMethod · 0.80
_testExtendStepMethod · 0.80

Calls

no outgoing calls

Tested by 2

test_ExpandToNumHypsMethod · 0.64
_testExtendStepMethod · 0.64