Can I use TensorBoard with Google Colab?

前端 未结 19 2958
滥情空心
滥情空心 2020-11-27 10:43

Is there any way to use TensorBoard when training a TensorFlow model on Google Colab?

19条回答
  •  难免孤独
    2020-11-27 10:53

    I tried to show TensorBoard on google colab today,

    # in case of CPU, you can this line
    # !pip install -q tf-nightly-2.0-preview
    # in case of GPU, you can use this line
    !pip install -q tf-nightly-gpu-2.0-preview
    
    # %load_ext tensorboard.notebook  # not working on 22 Apr
    %load_ext tensorboard # you need to use this line instead
    
    import tensorflow as tf
    
    

    '################
    do training
    '################

    # show tensorboard
    %tensorboard --logdir logs/fit
    

    here is actual example made by google. https://colab.research.google.com/github/tensorflow/tensorboard/blob/master/docs/r2/get_started.ipynb

提交回复
热议问题