【发布时间】:2019-08-24 17:52:15
【问题描述】:
我在尝试将 tensorboard 与 google collab 一起使用时遇到错误。 我正在使用 ngork 运行张量板。错误如下
我用来做上述操作的代码如下
LOG_DIR = '/content/drive/My Drive/Practice/Su'
get_ipython().system_raw(
'tensorboard --logdir {} --host 0.0.0.0 --port 6006 &'
.format(LOG_DIR)
)
!wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-
amd64.zip
!unzip ngrok-stable-linux-amd64.zip
get_ipython().system_raw('./ngrok http 6006 &')
! curl -s http://localhost:4040/api/tunnels | python3 -c \
"import sys, json; print(json.load(sys.stdin)['tunnels'][0]
['public_url'])"
【问题讨论】:
标签: python tensorflow tensorboard google-colaboratory