# WARNING:tensorflow:Keras is training/fitting/evaluating on array-like data

**URL:** <https://discuss.ai.google.dev/t/warningkeras-is-training-fitting-evaluating-on-array-like-data/22070>\
**Category:** General Discussion\
**Tags:** tfio, keras\
**Created:** [June 20, 2022, 3:16am UTC](https://discuss.ai.google.dev/t/warningkeras-is-training-fitting-evaluating-on-array-like-data/22070 "2022-06-20T03:16:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nayana\_Krishna](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/nayana_krishna/32/12401_2.png) [@Nayana\_Krishna](https://discuss.ai.google.dev/u/Nayana_Krishna)\
**Post date:** [June 20, 2022, 3:16am UTC](https://discuss.ai.google.dev/t/warningkeras-is-training-fitting-evaluating-on-array-like-data/22070/1 "2022-06-20T03:16:38Z")

</div>

WARNING:tensorflow:Keras is training/fitting/evaluating on array-like data. Keras may not be optimized for this format, so if your input data format is supported by TensorFlow I/O ([GitHub - tensorflow/io: Dataset, streaming, and file system extensions maintained by TensorFlow SIG-IO](https://github.com/tensorflow/io)) we recommend using that to load a Dataset instead.  
Epoch 1/10  
WARNING:tensorflow:AutoGraph could not transform \<function Model.make\_train\_function..train\_function at 0x000001BF037591F8\> and will run it as-is.  
Cause: closure mismatch, requested (‘self’, ‘step\_function’), but source function had ()  
To silence this warning, decorate the function with @tf.autograph.experimental.do\_not\_convert

---

<div class="post-metadata">

**Author:** ![chunduriv](https://avatars.discourse-cdn.com/v4/letter/c/bbe5ce/32.png) [@chunduriv](https://discuss.ai.google.dev/u/chunduriv)\
**Post date:** [September 12, 2022, 2:39pm UTC](https://discuss.ai.google.dev/t/warningkeras-is-training-fitting-evaluating-on-array-like-data/22070/3 "2022-09-12T14:39:10Z")

</div>

Please provide standalone code to reproduce the issue? Thank you
