JoinReducer

class opennmt.layers.JoinReducer(*args, **kwargs)[source]

A reducer that joins its inputs in a single tuple.

Inherits from: opennmt.layers.Reducer

reduce(inputs)[source]

See opennmt.layers.Reducer.call().

reduce_sequence(inputs, sequence_lengths)[source]

See opennmt.layers.Reducer.call().