NLP, Neural Networks, Python, TensorFlow, Deep Learning.
Since we defined our “output_sequence_length = 4” hence despite the sequence length being equal to 3 it is padded to 4 with zeros the same applies for the antipodal i.e even if the sequence is longer than the said size it gets truncated up to the defined limit hence selecting this parameter is