Closed pskrunner14 closed 6 years ago
why not just simply add teacher_forcing_ratio=0 while evaluation?
I am not a fan of adding more variables that does that same thing (is_eval
, teacher_forcing_ratio
).
Yeah you're right, it is kinda redundant overhead on the model, I thought there should be an explicit flag for evaluation mode. On it.
@pskrunner14 thanks :)
Added
is_eval
flag toseq2seq
forward function so the model does'nt use teacher forcing during evaluation. Fixes #8