Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@adamoudad
Created March 20, 2021 21:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamoudad/332f0a474c09d0fcf620488a082147d7 to your computer and use it in GitHub Desktop.
Save adamoudad/332f0a474c09d0fcf620488a082147d7 to your computer and use it in GitHub Desktop.
from tensorflow.keras.preprocessing.sequence import pad_sequences
maxlen = 200
x_train = pad_sequences(x_train, maxlen=maxlen)
x_val = pad_sequences(x_val, maxlen=maxlen)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment