-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
c1-quick 🕐Complexity lowComplexity lowp0-bug-critical ☢Exception rasingException rasingsubmodule ⊂Periphery/subclassesPeriphery/subclassesto-merge ↰ImminentImminent
Milestone
Description
- I have marked all applicable categories:
- exception-raising bug
- visual output bug
- documentation request (i.e. "X is missing from the documentation." If instead I want to ask "how to use X?" I understand [StackOverflow#tqdm] is more appropriate)
- new feature request
- I have visited the [source website], and in particular
read the [known issues] - I have searched through the [issue tracker] for duplicates
- I have mentioned version numbers, operating system and
environment, where applicable:
4.42.0 3.7.4 (default, Aug 13 2019, 20:35:49)
[GCC 7.3.0] linux
As per the traceback below, the Keras TqdmCallback no longer, as of a few days ago, works for me. The recipe I had been successfully following was at
https://stackoverflow.com/a/59432060/1021819
507 histNN5=NN5_model.fit(X5_train, y5_train, epochs=nepochs, batch_size=batch_size, \
508 validation_data=(X5_test,y5_test), callbacks=callbacks_list, \
--> 509 verbose=0)
/opt/conda/lib/python3.7/site-packages/tensorflow/python/keras/engine/training.py in _method_wrapper(self, *args, **kwargs)
64 def _method_wrapper(self, *args, **kwargs):
65 if not self._in_multi_worker_mode(): # pylint: disable=protected-access
---> 66 return method(self, *args, **kwargs)
67
68 # Running inside `run_distribute_coordinator` already.
/opt/conda/lib/python3.7/site-packages/tensorflow/python/keras/engine/training.py in fit(self, x, y, batch_size, epochs, verbose, callbacks, validation_split, validation_data, shuffle, class_weight, sample_weight, initial_epoch, steps_per_epoch, validation_steps, validation_batch_size, validation_freq, max_queue_size, workers, use_multiprocessing)
824 verbose=verbose,
825 epochs=epochs,
--> 826 steps=data_handler.inferred_steps)
827
828 self.stop_training = False
/opt/conda/lib/python3.7/site-packages/tensorflow/python/keras/callbacks.py in __init__(self, callbacks, add_history, add_progbar, model, **params)
229 # pylint: disable=protected-access
230 self._should_call_train_batch_hooks = any(
--> 231 cb._implements_train_batch_hooks() for cb in self.callbacks)
232 self._should_call_test_batch_hooks = any(
233 cb._implements_test_batch_hooks() for cb in self.callbacks)
/opt/conda/lib/python3.7/site-packages/tensorflow/python/keras/callbacks.py in <genexpr>(.0)
229 # pylint: disable=protected-access
230 self._should_call_train_batch_hooks = any(
--> 231 cb._implements_train_batch_hooks() for cb in self.callbacks)
232 self._should_call_test_batch_hooks = any(
233 cb._implements_test_batch_hooks() for cb in self.callbacks)
AttributeError: 'TqdmCallback' object has no attribute '_implements_train_batch_hooks'
Metadata
Metadata
Assignees
Labels
c1-quick 🕐Complexity lowComplexity lowp0-bug-critical ☢Exception rasingException rasingsubmodule ⊂Periphery/subclassesPeriphery/subclassesto-merge ↰ImminentImminent