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

Method ComputePredictions

lingvo/tasks/mt/decoder.py:697–829  ·  view source on GitHub ↗

Decodes `targets` given encoded source. Args: theta: A `.NestedMap` object containing weights' values of this layer and its children layers. encoder_outputs: a NestedMap computed by encoder. Expected to contain: encoded - source encoding, of shape [time, batch, depth

(self, theta, encoder_outputs, targets)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 11

_ZeroOutFirstTimeStepMethod · 0.95
ApplyClippingMethod · 0.95
ApplyDropoutMethod · 0.95
AccumulateStatesMethod · 0.80
PostProcessStatesMethod · 0.80
FlattenItemsMethod · 0.80
EmbLookupMethod · 0.45
FPropMethod · 0.45
_AddAttenProbsSummaryMethod · 0.45
TransformMethod · 0.45

Tested by

no test coverage detected