There is an alternative solution, but we should use TFv2.0 preview. Therefore, if you have no migration problems, try this:
install tfv2.0 for GPU or CPU (TPU is not yet available)
CPU
ts-night-2.0-view
GPU
ts-night-gp-2.0-view
%%capture !pip install -q tf-nightly-gpu-2.0-preview
import TensorBoard as usual:
from tensorflow.keras.callbacks import TensorBoard
Clear or create the folder where you want to save the logs (run these lines before running fit() workout)
# Clear any logs from previous runs import time !rm -R ./logs/ # rf log_dir="logs/fit/{}".format(time.strftime("%Y%m%d-%H%M%S", time.gmtime())) tensorboard = TensorBoard(log_dir=log_dir, histogram_freq=1)
Have fun with TensorBoard! :)
%tensorboard --logdir logs/fit
Here's the official Colab notebook and repo on GitHub
New alpha release TFv2.0:
CPU
!pip install -q tensorflow==2.0.0-alpha0 GPU
!pip install -q tensorflow-gpu==2.0.0-alpha0
virtualdvid
source share