Is there any way to use TensorBoard when training a TensorFlow model on Google Colab?
According to the documentation all you need to do is this:
%load_ext tensorboard
!rm -rf ./logs/ #to delete previous runs
%tensorboard --logdir logs/
tensorboard = TensorBoard(log_dir="./logs")
And just call it in the fit method:
model.fit(X_train, y_train, epochs = 1000,
callbacks=[tensorboard], validation_data=(X_test, y_test))
And that should give you something like this:
