This commit is contained in:
fchollet 2015-05-09 15:37:01 -07:00
commit 376373d159

@ -6,8 +6,8 @@ from six.moves import range
def pad_sequences(sequences, maxlen=None, dtype='int32'):
"""
Pad each sequence to the same lenght:
the lenght of the longuest sequence.
Pad each sequence to the same length:
the length of the longuest sequence.
If maxlen is provided, any sequence longer
than maxlen is truncated to maxlen.