ValueError: `validation_split` is only supported for Tensors or NumPy arrays, found following types in the input: [<class 'int'>]
 history = model.fit([X_word_train,np.array(X_char_train).reshape((len(X_char_train),max_len,max_len_char)),np.array(pos_tag_train), max_len], np.array(y_train).reshape(len(y_train),max_len,1), batch_size=5, epochs=60, validation_split=0.2, verbose=1)
  File "C:\Users\saivi\anaconda3\envs\mention\lib\site-packages\tensorflow\python\keras\engine\training.py", line 66, in _method_wrapper
    return method(self, *args, **kwargs)
  File "C:\Users\saivi\anaconda3\envs\mention\lib\site-packages\tensorflow\python\keras\engine\training.py", line 797, in fit
    shuffle=False))
  File "C:\Users\saivi\anaconda3\envs\mention\lib\site-packages\tensorflow\python\keras\engine\data_adapter.py", line 1311, in train_validation_split
    "arrays, found: {}".format(arrays))
ValueError: `validation_split` is only supported for Tensors or NumPy arrays, found: ([array([[ 481,    8, 1128, ...,    0,    0,    0],
       [  19,  693,    3, ...,    0,    0,    0],
       [2044,   31, 1254, ...,    0,    0,    0],
       ...,
       [  54, 1545,   31, ...,    0,    0,    0],
       [ 699,    2, 1068, ...,    0,    0,    0],
       [ 230,   40,   18, ...,    0,    0,    0]]), array([[[ 92,  83,  51, ...,   0,   0,   0],
        [ 29,  83,   0, ...,   0,   0,   0],
        [ 29,  38,  16, ...,   0,   0,   0],
        ...,
        [  0,   0,   0, ...,   0,   0,   0],
        [  0,   0,   0, ...,   0,   0,   0],
        [  0,   0,   0, ...,   0,   0,   0]],

       [[  2,  52,   0, ...,   0,   0,   0],
        [ 33,  83,  33, ...,   0,   0,   0],
        [ 33,  14,   4, ...,   0,   0,   0],
        ...,
        [  0,   0,   0, ...,   0,   0,   0],
        [  0,   0,   0, ...,   0,   0,   0],
        [  0,   0,   0, ...,   0,   0,   0]],

       [[ 59,  33,  47, ...,   0,   0,   0],
        [ 22,   0,   0, ...,   0,   0,   0],
        [ 29,  71,  47, ...,   0,   0,   0],
        ...,
        [  0,   0,   0, ...,   0,   0,   0],
        [  0,   0,   0, ...,   0,   0,   0],
        [  0,   0,   0, ...,   0,   0,   0]],

       ...,

       [[105,  51,  47, ...,   0,   0,   0],
        [ 84,   7,   7, ...,   0,   0,   0],
        [ 22,   0,   0, ...,   0,   0,   0],
        ...,
        [  0,   0,   0, ...,   0,   0,   0],
        [  0,   0,   0, ...,   0,   0,   0],
        [  0,   0,   0, ...,   0,   0,   0]],

       [[105,  38,  83, ...,   0,   0,   0],
        [ 29,  14,   0, ...,   0,   0,   0],
        [ 93,  38,   0, ...,   0,   0,   0],
        ...,
        [  0,   0,   0, ...,   0,   0,   0],
        [  0,   0,   0, ...,   0,   0,   0],
        [  0,   0,   0, ...,   0,   0,   0]],

       [[ 40,  38,  83, ...,   0,   0,   0],
        [ 88,  29,   0, ...,   0,   0,   0],
        [ 29,  39,   0, ...,   0,   0,   0],
        ...,
        [  0,   0,   0, ...,   0,   0,   0],
        [  0,   0,   0, ...,   0,   0,   0],
        [  0,   0,   0, ...,   0,   0,   0]]]), array([[28, 21, 15, ...,  9,  9,  9],
       [27, 28, 21, ...,  9,  9,  9],
       [31,  9, 16, ...,  9,  9,  9],
       ...,
       [28, 16,  9, ...,  9,  9,  9],
       [18, 21,  8, ...,  9,  9,  9],
       [18, 21, 17, ...,  9,  9,  9]]), 100], array([[[2],
        [3],
        [3],
        ...,
        [0],
        [0],
        [0]],

       [[2],
        [2],
        [3],
        ...,
        [0],
        [0],
        [0]],

       [[2],
        [1],
        [1],
        ...,
        [0],
        [0],
        [0]],

       ...,

       [[2],
        [2],
        [1],
        ...,
        [0],
        [0],
        [0]],

       [[2],
        [3],
        [2],
        ...,
        [0],
        [0],
        [0]],

       [[2],
        [3],
        [3],
        ...,
        [0],
        [0],
        [0]]]), None) @kusumlata123 Could you please try to upgrade to the latest TF version as you are using an older TF version which is not actively supported.  You might be using the validation_split argument in an unsupported format with your machine learning model. Kindly share the standalone code to replicate the issue if you still have any concern in the latest TF version?
Thank you! This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.
### Issue type

Bug

### Have you reproduced the bug with TensorFlow Nightly?

Yes

### Source

source

### TensorFlow version

tf2.9

### Custom code

Yes

### OS platform and distribution

window

### Mobile device

_No response_

### Python version

3.7.6

### Bazel version

_No response_

### GCC/compiler version

_No response_

### CUDA/cuDNN version

cuda_12.4.r12.4/compiler.34097967_0

### GPU model and memory

_No response_

### Current behavior?

 File "MDLSTM7_CRF.py", line 381, in <module>
    model_build(input_file)
  File "MDLSTM7_CRF.py", line 275, in model_build
    history = model.fit([np.array(X_word_train),np.array(X_char_train).reshape((len(X_char_train),max_len,max_len_char)),np.array(pos_tag_train), max_len], np.array(y_train).reshape(len(y_train),max_len,1), batch_size=5, epochs=60, validation_split=0.2, verbose=1)
  File "C:\Users\saivi\anaconda3\envs\mention\lib\site-packages\keras\utils\traceback_utils.py", line 67, in error_handler
    raise e.with_traceback(filtered_tb) from None
  File "C:\Users\saivi\anaconda3\envs\mention\lib\site-packages\keras\engine\data_adapter.py", line 1482, in train_validation_split
    "arrays, found following types in the input: {}".format(unsplitable))
ValueError: `validation_split` is only supported for Tensors or NumPy arrays, found following types in the input: [<class 'int'>]

### Standalone code to reproduce the issue

```shell
history = model.fit([np.array(X_word_train),np.array(X_char_train).reshape((len(X_char_train),max_len,max_len_char)),np.array(pos_tag_train), max_len], np.array(y_train).reshape(len(y_train),max_len,1), batch_size=5, epochs=60, validation_split=0.2, verbose=1)
```


### Relevant log output

```shell
File "MDLSTM7_CRF.py", line 381, in <module>
    model_build(input_file)
  File "MDLSTM7_CRF.py", line 275, in model_build
    history = model.fit([np.array(X_word_train),np.array(X_char_train).reshape((len(X_char_train),max_len,max_len_char)),np.array(pos_tag_train), max_len], np.array(y_train).reshape(len(y_train),max_len,1), batch_size=5, epochs=60, validation_split=0.2, verbose=1)
  File "C:\Users\saivi\anaconda3\envs\mention\lib\site-packages\keras\utils\traceback_utils.py", line 67, in error_handler
    raise e.with_traceback(filtered_tb) from None
  File "C:\Users\saivi\anaconda3\envs\mention\lib\site-packages\keras\engine\data_adapter.py", line 1482, in train_validation_split
    "arrays, found following types in the input: {}".format(unsplitable))
ValueError: `validation_split` is only supported for Tensors or NumPy arrays, found following types in the input: [<class 'int'>]
```
