当前位置: 主页 > 程序 >

tensorboard dt - datetime.datetime.fromtimestamp(0)).total_s

时间:2019-04-26  作者:haden   点击:
【摘要】环境: Anaconda 1.9.2 Python 3.7.0 tensorflow 1.13.1 tensorboard 1.13.1 问题: 生成graph图后,运行 tensorboard --logdir=DIR 后报错 TensorBoard 1.13.1 at http://localhost:6006 (Press CTRL+C to quit) Traceback (most recent cal

环境:
Anaconda 1.9.2
Python 3.7.0
tensorflow 1.13.1
tensorboard 1.13.1

问题:
生成graph图后,运行
tensorboard --logdir=DIR
后报错

TensorBoard 1.13.1 at http://localhost:6006 (Press CTRL+C to quit)
Traceback (most recent call last):
  File "f:\anaconda3\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "f:\anaconda3\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\ayshx\AppData\Roaming\Python\Python37\Scripts\tensorboard.exe\__main__.py", line 9, in <module>
  File "f:\anaconda3\lib\site-packages\tensorboard\main.py", line 57, in run_main
    app.run(tensorboard.main, flags_parser=tensorboard.configure)
  File "f:\anaconda3\lib\site-packages\absl\app.py", line 300, in run
    _run_main(main, args)
  File "f:\anaconda3\lib\site-packages\absl\app.py", line 251, in _run_main
    sys.exit(main(argv))
  File "f:\anaconda3\lib\site-packages\tensorboard\program.py", line 228, in main
    self._register_info(server)
  File "f:\anaconda3\lib\site-packages\tensorboard\program.py", line 274, in _register_info
    manager.write_info_file(info)
  File "f:\anaconda3\lib\site-packages\tensorboard\manager.py", line 269, in write_info_file
    payload = "%s\n" % _info_to_string(tensorboard_info)
  File "f:\anaconda3\lib\site-packages\tensorboard\manager.py", line 129, in _info_to_string
    for k in _TENSORBOARD_INFO_FIELDS
  File "f:\anaconda3\lib\site-packages\tensorboard\manager.py", line 129, in <dictcomp>
    for k in _TENSORBOARD_INFO_FIELDS
  File "f:\anaconda3\lib\site-packages\tensorboard\manager.py", line 51, in <lambda>
    (dt - datetime.datetime.fromtimestamp(0)).total_seconds()),
OSError: [Errno 22] Invalid argument
 
 

解决方法:
找到安装目录D:\Anaconda3\Lib\site-packages\tensorboard\manager.py
51行

(dt - datetime.datetime.fromtimestamp(0)).total_seconds()),

修改为

(dt - datetime.datetime.fromtimestamp(86400)).total_seconds()),


原回答:
https://github.com/home-assistant/appdaemon/issues/83

 

顶一下
(0)
0%
踩一下
(0)
0%
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
验证码: 点击我更换图片

推荐内容