MCPcopy Create free account
hub / github.com/NVIDIA/FasterTransformer / reduce

Method reduce

examples/tensorflow/decoder/utils/reducer.py:120–122  ·  view source on GitHub ↗

See :meth:`opennmt.layers.Reducer.__call__`.

(self, inputs)

Source from the content-addressed store, hash-verified

118
119 @abc.abstractmethod
120 def reduce(self, inputs):
121 """See :meth:`opennmt.layers.Reducer.__call__`."""
122 raise NotImplementedError()
123
124 @abc.abstractmethod
125 def reduce_sequence(self, inputs, sequence_lengths):

Callers 1

__call__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected