How to use Model.fit which supports generators (after fit_generator deprecation)

Model.fit_generator is deprecated starting from tensorflow 2.1.0 which is currently is in rc1.
You can find the documentation for tf-2.1.0-rc1 here: https://www.tensorflow.org/versions/r2.1/api_docs/python/tf/keras/Model#fit

As you can see the first argument of the Model.fit can take a generator so just pass it your generator.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)