Can anyone explain the purpose of sequence length field in tf.contrib.seq2seq.TrainingHelper
Asked
Active
Viewed 567 times
3

Rakesh kumar
- 392
- 5
- 13
1 Answers
2
It represents the length of each target sequence in "inputs" parameter.
Check : http://higepon.hatenablog.com/entry/20171212/1513076578 for example.
It is used for checking if the target sequence tokens exhausted, when feeding each token to decoder. Check the following: https://github.com/tensorflow/tensorflow/blob/r1.10/tensorflow/contrib/seq2seq/python/ops/helper.py#L244

VKM
- 21
- 2
-
1kindly consider adding the information provided in the link in your answer, – Inder Aug 20 '18 at 11:57
-
Guys it's like sequence length, like something you provide in dynamic rnn, so you know that's the end of the sequence. – shivam13juna Dec 26 '18 at 10:38