Yuan yang Deng
Yuan yang Deng
tf.keras.preprocessing.sequence.pad_sequences([[1,2],[2,3]], maxlen=20,padding='post') the code above is ok. but , tf.keras.preprocessing.sequence.pad_sequences(input_tensor, maxlen=20,padding='post') File "/home/student2/software/anaconda3/envs/tf/lib/python3.8/site-packages/keras_preprocessing/sequence.py", line 98, in pad_sequences trunc = np.asarray(trunc, dtype=dtype) TypeError: **int() argument must be a string, a bytes-like...
