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

Method ExtendStep

lingvo/core/layers_with_attention.py:1516–1572  ·  view source on GitHub ↗

Transformer Layer, extend one step in decoding. 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. source_vecs: [source_batch, dim].

(self,
                 theta,
                 source_vecs,
                 prefix_states,
                 aux_vecs=None,
                 aux_paddings=None,
                 t=None,
                 **kwargs)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

ExtendStepMethod · 0.45
ExtendStepMethod · 0.45
ExtendStepMethod · 0.45

Calls 1

FPropMethod · 0.45

Tested by

no test coverage detected