Created by: guoshengCS
- Add seq2seq example
- Update text.py as following:
- Use
layers.layers.create_global_var
replacelayers.fill_constant
inBasicLSTMCell.__init__
. Otherwise, thefill_constant
op would not be included in the test program since it is not inmodel.forward
and we prune all ops defined out ofmodel.forward
when copying theori_program
as test program. Maybe find better method to resolve it later. - Use
if sequence_length is not None
replaceif sequence
since it might cause error under latest paddle dygraph code.
- Use
- Refine batch number of Transformer dataloader and move transformer to examples.
- Update model.py as following:
- Update the way to get length of dataloader to allow uncertain batch number, and adjust the log print for uncertain batch number.