【问题标题】:Tensorboard __init__() got an unexpected keyword argument 'purge_orphaned_data'Tensorboard __init__() 得到了一个意外的关键字参数“purge_orphaned_data”
【发布时间】:2016-06-28 17:37:29
【问题描述】:

第一次在新 VM 中运行 tensorboard,我最终在 tensorboard init() 中遇到此错误。感谢您的帮助。

Traceback (most recent call last):

 File "/home/sarath/virtualenvs/tensorflow/bin/tensorboard", line 9, in module> load_entry_point('tensorflow==0.7.1', 'console_scripts', 'tensorboard')()


  File "/home/sarath/virtualenvs/tensorflow/local/lib/python2.7/site-packages/tensorflow/tensorboard/tensorboard.py", line 82, in main
    purge_orphaned_data=FLAGS.purge_orphaned_data)

TypeError: __ init__() got an unexpected keyword argument 'purge_orphaned_data'

【问题讨论】:

    标签: tensorflow tensorboard


    【解决方案1】:

    TensorBoard 开发人员在这里。我很困惑这是怎么发生的,因为虽然 purge_orphaned_data 标志存在于master 中,但它不存在于r0.7.1 中。实际上,文件路径 tensorflow/tensorboard/tensorboard.py 在 0.7.1 中是不存在的(在 0.7.1 中是 tensorboard/backend/tensorboard.py)。

    所以看起来你以某种方式获得了混合 r0.7.1 和来自 master 的文件的安装。您能否在 TensorFlow 上提交一个 Github 问题,并重现您是如何进入这种状态的?

    【讨论】:

    • 感谢您的回复。正如你所说的版本混淆了,我有两个版本的 tensorboard,一个在 virtualenv 中,一个在 /usr/bin 中 - 卸载 virtualenv 中的一个为我解决了这个问题。
    【解决方案2】:

    我也有同样的问题。我删除了“purge_orphaned_data=FLAGS.purge_orphaned_data”,它起作用了。

    【讨论】:

      猜你喜欢
      • 2019-01-27
      • 2018-10-20
      • 2015-06-08
      • 2021-03-17
      • 2013-05-05
      • 2016-06-05
      • 2020-08-20
      • 2021-09-20
      • 2014-05-12
      相关资源
      最近更新 更多