小编lin*_*lin的帖子

无效的格式字符串Tensorboard

我有以下代码:

import tensorflow as tf
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
sess = tf.Session()
a = tf.placeholder(tf.float64, name="A")
b = tf.placeholder(tf.float64, name="B")
add = tf.add(a, b, name='Addition')
result = sess.run(add, {a:32, b:44})
print(result)
file = tf.summary.FileWriter('./logs', sess.graph)
sess.close()
Run Code Online (Sandbox Code Playgroud)

只是为了生成运行Tensorboard的示例。当我运行tensorboard --logdir=./logs生成图形时,错误是:

TensorBoard 1.13.0a20190211 at http://LAPTOP-Lin:6006 (Press CTRL+C to quit)
Traceback (most recent call last):
  File "c:\python3.6.4\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\python3.6.4\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Python3.6.4\Scripts\tensorboard.exe\__main__.py", line 9, in <module>
  File "c:\python3.6.4\lib\site-packages\tensorboard\main.py", line 62, …
Run Code Online (Sandbox Code Playgroud)

python tensorflow tensorboard

5
推荐指数
1
解决办法
1336
查看次数

标签 统计

python ×1

tensorboard ×1

tensorflow ×1