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

Method reduce_sequence

examples/tensorflow/bert/utils/reducer.py:125–127  ·  view source on GitHub ↗

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

(self, inputs, sequence_lengths)

Source from the content-addressed store, hash-verified

123
124 @abc.abstractmethod
125 def reduce_sequence(self, inputs, sequence_lengths):
126 """See :meth:`opennmt.layers.Reducer.__call__`."""
127 raise NotImplementedError()
128
129
130class SumReducer(Reducer):

Callers 1

__call__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected