ValueError: Failed to convert a NumPy array to a Tensor (Unsupported object type int) in Python
Before fitting the model the training data write the below 2 lines:
X_train=np.asarray(X_train).astype(np.int)

y_train=np.asarray(y_train).astype(np.int)