0

我最近安装了 tensorflow,它似乎工作正常,直到我尝试使用 tensorboard 显示计算图。我收到以下错误:

python /usr/local/lib/python2.7/site-packages/tensorflow/tensorboard/tensorboard.py --logdir=/tmp/basic/
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/tensorflow/tensorboard/tensorboard.py", line 13, in <module>
    import tensorflow.python.platform
  File "/usr/local/lib/python2.7/site-packages/tensorflow/__init__.py", line 4, in <module>
    from tensorflow.python import *
  File "/usr/local/lib/python2.7/site-packages/tensorflow/python/__init__.py", line 13, in <module>
    from tensorflow.core.framework.graph_pb2 import *
  File "/usr/local/lib/python2.7/site-packages/tensorflow/core/framework/graph_pb2.py", line 16, in <module>
    from tensorflow.core.framework import attr_value_pb2 as tensorflow_dot_core_dot_framework_dot_attr__value__pb2
  File "/usr/local/lib/python2.7/site-packages/tensorflow/core/framework/attr_value_pb2.py", line 16, in <module>
    from tensorflow.core.framework import tensor_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__pb2
  File "/usr/local/lib/python2.7/site-packages/tensorflow/core/framework/tensor_pb2.py", line 16, in <module>
    from tensorflow.core.framework import tensor_shape_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__shape__pb2
  File "/usr/local/lib/python2.7/site-packages/tensorflow/core/framework/tensor_shape_pb2.py", line 22, in <module>
    serialized_pb=_b('\n,tensorflow/core/framework/tensor_shape.proto\x12\ntensorflow\"d\n\x10TensorShapeProto\x12-\n\x03\x64im\x18\x02 \x03(\x0b\x32 .tensorflow.TensorShapeProto.Dim\x1a!\n\x03\x44im\x12\x0c\n\x04size\x18\x01 \x01(\x03\x12\x0c\n\x04name\x18\x02 \x01(\tb\x06proto3')
TypeError: __init__() got an unexpected keyword argument 'syntax'

关于如何解决问题的任何建议?

4

1 回答 1

0

这看起来像是 TensorBoard 错误而不是使用问题。你能在我们的Github上提交一个错误吗?

如果您能给我们一个干净的重现,我们将更容易追踪它,包括: - 您如何安装 TensorFlow - 触发此错误的事件文件

您遇到的问题与来自的最新代码有关master;大多数人从 pip 安装,但我一直看到一些问题,人们的 pip 安装以某种方式从 master 吸收新代码。您是否打算使用我们主分支中最先进的未发布源代码,或者您是否安装了例如版本 0.7.1 并且对您的代码不稳定感到惊讶?

于 2016-03-18T22:16:52.520 回答