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

Method _PreBeamSearchStepCallback

lingvo/tasks/mt/decoder.py:1024–1132  ·  view source on GitHub ↗

Returns logits for sampling ids and the next model states. Args: theta: a NestedMap of parameters. encoder_outputs: a NestedMap computed by encoder. step_ids: A tensor of shape [tgt_batch, 1]. states: A `.NestedMap` of tensors representing states that the clients

(self, theta, encoder_outputs, step_ids, states,
                                 num_hyps_per_beam, cur_step)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 6

ApplyClippingMethod · 0.95
_DecodeStepMethod · 0.95
_ForceAlignmentMethod · 0.95
TransformWithKeyMethod · 0.80
EmbLookupMethod · 0.45
LogitsMethod · 0.45

Tested by

no test coverage detected