title: __array__() takes 1 positional argument but 2 were given on model.fit in Tensorflow
body: <p>I have a small training that runs into the above mentioned error:</p>
  <pre><code>import numpy as np
  import pandas as pd
  from pathlib import Path
  import os.path
  import matplotlib.pyplot as plt
  import tensorflow as tf
  import seaborn as sns
  from time import perf_counter
  from sklearn.metrics import confusion_matrix
  from sklearn.model_selection import train_test_split
  from sklearn.metrics import classification_report, accuracy_score
  
  ...
  print(train_images)
  print(val_images)
  
  m = get_model(tf.keras.applications.VGG16)
  print(m)
  
  # Fit the model
  history = m.fit(train_images, validation_data=val_images, epochs=1, verbose=0)
  ...
  </code></pre>
  <p>Outputs:</p>
  <pre><code>&lt;tensorflow.python.keras.preprocessing.image.DataFrameIterator object at 0x000001F18B205A90&gt;
  &lt;tensorflow.python.keras.preprocessing.image.DataFrameIterator object at 0x000001F18B205B20&gt;
  &lt;tensorflow.python.keras.engine.functional.Functional object at 0x0000021F1D40E520&gt;
  Traceback (most recent call last):
      File &quot;D:/Projects/MTT-Models/main.py&quot;, line 205, in &lt;module&gt;
      history = m.fit(train_images, validation_data=val_images, epochs=1, verbose=0)
  ...
  ...
  TypeError: __array__() takes 1 positional argument but 2 were given
  </code></pre>