bstriner / keras-tqdm

Keras integration with TQDM progress bars
MIT License
348 stars 41 forks source link

Fix incompatibility with tf.data.Dataset #28

Open lminer opened 5 years ago

lminer commented 5 years ago

When you try to use this callback with a dataset, it errors out later because samples has a value of None. However, there is a value for steps, so the else does take care of the dataset case. This change assures that the dataset case is directed to the else.

The other PR opened for this bug does not work.