I’m doing use pad_sequences()
.
Here’s my code:
<code>from tensorflow.keras.utils import pad_sequences
input_x[i] = pad_sequences(x00_1[i], padding='post', maxlen=128,dtype='float32')
</code>
<code>from tensorflow.keras.utils import pad_sequences
input_x[i] = pad_sequences(x00_1[i], padding='post', maxlen=128,dtype='float32')
</code>
from tensorflow.keras.utils import pad_sequences
input_x[i] = pad_sequences(x00_1[i], padding='post', maxlen=128,dtype='float32')
but I got an error IndexError: too many indices for array
.
How can I fix it?
My version:
<code>Python 3.6
Tensorflow 1.14.0
Keras2.3.1
</code>
<code>Python 3.6
Tensorflow 1.14.0
Keras2.3.1
</code>
Python 3.6
Tensorflow 1.14.0
Keras2.3.1