deep-diver / EN-FR-MLT-tensorflow

English-French Machine Language Translation in Tensorflow
109 stars 52 forks source link

purpose of stride_slice #3

Open hunterMG opened 5 years ago

hunterMG commented 5 years ago

In process_decoder_input, what's the purpose of the code below:

after_slice = tf.strided_slice(target_data, [0, 0], [batch_size, -1], [1, 1])

It seems that it just remove the last word from each sentence(a punctuation actually).