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

Method _InitBeamSearchStateCallback

lingvo/tasks/mt/decoder.py:975–1021  ·  view source on GitHub ↗

Returns initial beams search states. Args: theta: a NestedMap of parameters. encoder_outputs: a NestedMap computed by encoder. num_hyps_per_beam: An int, number hyps to keep for source sentence. Returns: A tuple (initial_results, states). initial_results: a

(self, theta, encoder_outputs,
                                   num_hyps_per_beam)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 2

_InitDecoderMethod · 0.95
_ExpandToNumHypsMethod · 0.80

Tested by

no test coverage detected