-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: 'TensorBoardColabCallback' object has no attribute 'on_train_batch_begin' #11
Comments
same issue here while running the mnist keras tutorial |
If you can switch to tensorflow 2.0, there's now an official implementation: click It works well, especially if you want to embed tensorboard into colab directly. Although I have to say it is a bit bothersome, I like the possibility of using a separate tab. If not, maybe you can try to create a wrapper object of the likes: tbc = ...
class custom_callback(TensorBoardColabCallback):
def __init__(self, *args, **kwargs):
super().__init__(self, *args, **kwargs)
def on_train_batch_begin(self, *args, **kwargs):
pass
...
model.fit(..., callbacks=[custom_callback(tbc)]) |
@r-or This request comes from my lack of Python object oriented knowledge but would you be able to explain what should be going into the ellipsis for |
This fixed the issue for me:
|
Hello!
It seems that the latest 1.x version of Keras+Tensorflow requires an
on_train_batch_begin
function definition that is missing...These are the versions of Tensorflow, Keras and tensorboardcolab that I'm using, respectively, which already come pre-installed in Google Colab:
Any workaround for this issue?
Thanks!
The text was updated successfully, but these errors were encountered: