title: Data adapters should be mutually exclusive for handling inputs - TensorFlow
body: <p>I got this error </p>
  
  <pre><code>RuntimeError: Data adapters should be mutually exclusive for handling inputs. Found multiple adapters [&lt;class 'tensorflow.python.keras.engine.data_adapter.GeneratorDataAdapter'&gt;, &lt;class 'tensorflow.python.keras.engine.data_adapter.CompositeTensorDataAdapter'&gt;] to handle input: &lt;class 'tensorflow.python.data.ops.iterator_ops.OwnedIterator'&gt;, &lt;class 'NoneType'&gt;
  </code></pre>
  
  <p>when I start training  (TensorFlow 2.2.0-rc2)</p>
  
  <pre><code>model.fit(train_generator, epochs=5, steps_per_epoch=dl.length//batch_size, shuffle=True, callbacks=[cp_callback])
  </code></pre>
  
  <p>and data adaptor like </p>
  
  <pre><code>def get_batched_dataset(self, batch_size):
      self.dataset = tf.data.Dataset.from_tensor_slices((self.filenames, self.labels))
      self.dataset = self.dataset.repeat()
      self.dataset = self.dataset.map(map_func=self._parse_function, num_parallel_calls=tf.data.experimental.AUTOTUNE)
      self.dataset = self.dataset.batch(batch_size=batch_size)
  
      iterator = tf.compat.v1.data.make_one_shot_iterator(self.dataset)
      return iterator
  
  train_generator = dl.get_batched_dataset(batch_size)
  
  
  </code></pre>