onmt.Generator

Default decoder generator. Given RNN state, produce categorical distribution.

Simply implements .

Undocumented methods

* onmt.Generator(rnnSize, outputSize) * onmt.Generator:updateOutput(input) * onmt.Generator:updateGradInput(input, gradOutput) * onmt.Generator:accGradParameters(input, gradOutput, scale)