my_seq2seq
my_seq2seq copied to clipboard
My seq2seq based on tensorflow
Does anyone meet the problem that the parameter 'beam_size' can only be set to 1, or it will result in errors?
I would like to ask how could I run the Pointer-Generator model?
File "D:\App\novel\FunText\src\models\pointernet\PointerNetGenerator.py", line 108, in _build_decoder_cell initial_state = cell.zero_state(self._batch_size, tf.float32).clone(cell_state=cell_state) File "D:\App\novel\FunText\src\models\pointernet\PointerNetHelper.py", line 202, in zero_state for _ in self._attention_mechanisms)) TypeError: __new__() missing 1 required positional argument: 'attention_state'