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

Method ExtendStep

lingvo/tasks/mt/decoder.py:1629–1757  ·  view source on GitHub ↗

Extend prefix as represented by `prefix_states` by one more step. This function is expected to be called during fast decoding of Transformer models. Args: theta: A `.NestedMap` object containing weights' values of this layer and its children layers. encoder_outputs:

(self, theta, encoder_outputs, new_ids, t, prefix_states)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 5

StepMethod · 0.45
ExtendStepMethod · 0.45
_testExtendStepMethod · 0.45
testDecoderExtendStepMethod · 0.45

Calls 6

_RemoveEOSProbsMethod · 0.95
_ExpandToNumHypsMethod · 0.80
PackMethod · 0.80
EmbLookupMethod · 0.45
FPropMethod · 0.45
FlattenMethod · 0.45

Tested by 2

_testExtendStepMethod · 0.36
testDecoderExtendStepMethod · 0.36