An run time error on model.fir

At run time with the following input parameters:, y, batch_size=32, epochs=20, validation_split=0.2 ,callbacks=[tensorboard])
the following error is encountered:
validation_split is only supported for Tensors or NumPy arrays, found following types in the input: [<class ‘int’>, <class ‘int’>, <class ‘int’>, <class ‘int’>, <class ‘int’>, <class ‘int’>, <class ‘int’>, <class ‘int’>, <class ‘int’>, <class ‘int’>, <class ‘int’>, <class ‘int’>, <class ‘int’>, …

the tensorflow-gpu version is 2.7.1
numpy version is 1.23.2
Could this be from the Nampy version?

no, you have convert the data in np array.
use this function “np.array()”

1 Like