Open zazula opened 3 years ago
on_train_batch_begin() and on_train_batch_end() are not being called on callbacks.
on_batch_begin() and on_batch_end() are being called and are the workaround.
That is, this does not work: tf.keras.callbacks.LambdaCallback(on_train_batch_end=lambda batch, logs: do_something())
tf.keras.callbacks.LambdaCallback(on_train_batch_end=lambda batch, logs: do_something())
but this does: tf.keras.callbacks.LambdaCallback(on_batch_end=lambda batch, logs: do_something())
tf.keras.callbacks.LambdaCallback(on_batch_end=lambda batch, logs: do_something())
tensorflow: 2.4.0-rc0
on_train_batch_begin() and on_train_batch_end() are not being called on callbacks.
on_batch_begin() and on_batch_end() are being called and are the workaround.
That is, this does not work:
tf.keras.callbacks.LambdaCallback(on_train_batch_end=lambda batch, logs: do_something())
but this does:
tf.keras.callbacks.LambdaCallback(on_batch_end=lambda batch, logs: do_something())
tensorflow: 2.4.0-rc0