Tensorboar + "TypeError: GetNext() takes 1 positional argument but 2 were given"

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/handsome_for_kill/article/details/80269595

Tensorboar + “TypeError: GetNext() takes 1 positional argument but 2 were given”

运行tensorboard命令,

tensorboard --logdir results

得到,
2018-05-10 15:55:18.300428: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:898] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2018-05-10 15:55:18.300835: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1356] Found device 0 with properties: 
name: GeForce GTX 1050 Ti major: 6 minor: 1 memoryClockRate(GHz): 1.62
pciBusID: 0000:01:00.0
totalMemory: 3.95GiB freeMemory: 3.06GiB
2018-05-10 15:55:18.300850: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1435] Adding visible gpu devices: 0
2018-05-10 15:55:18.490767: I tensorflow/core/common_runtime/gpu/gpu_device.cc:923] Device interconnect StreamExecutor with strength 1 edge matrix:
2018-05-10 15:55:18.490819: I tensorflow/core/common_runtime/gpu/gpu_device.cc:929]      0 
2018-05-10 15:55:18.490829: I tensorflow/core/common_runtime/gpu/gpu_device.cc:942] 0:   N 
Exception in thread Reloader:
Traceback (most recent call last):
  File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.5/threading.py", line 862, in run
    self._target(*self._args, **self._kwargs)
  File "/home/vincentfei/tensorflow/lib/python3.5/site-packages/tensorboard/backend/application.py", line 360, in _reload_forever
    reload_multiplexer(multiplexer, path_to_run)
  File "/home/vincentfei/tensorflow/lib/python3.5/site-packages/tensorboard/backend/application.py", line 334, in reload_multiplexer
    multiplexer.Reload()
  File "/home/vincentfei/tensorflow/lib/python3.5/site-packages/tensorboard/backend/event_processing/plugin_event_multiplexer.py", line 195, in Reload
    accumulator.Reload()
  File "/home/vincentfei/tensorflow/lib/python3.5/site-packages/tensorboard/backend/event_processing/plugin_event_accumulator.py", line 185, in Reload
    for event in self._generator.Load():
  File "/home/vincentfei/tensorflow/lib/python3.5/site-packages/tensorboard/backend/event_processing/directory_watcher.py", line 88, in Load
    for event in self._LoadInternal():
  File "/home/vincentfei/tensorflow/lib/python3.5/site-packages/tensorboard/backend/event_processing/directory_watcher.py", line 112, in _LoadInternal
    for event in self._loader.Load():
  File "/home/vincentfei/tensorflow/lib/python3.5/site-packages/tensorboard/backend/event_processing/event_file_loader.py", line 53, in Load
    self._reader.GetNext(status)
TypeError: GetNext() takes 1 positional argument but 2 were given

TensorBoard 1.7.0 at http://vincentfei-OMEN-by-HP-Laptop:6006 (Press CTRL+C to quit)
这里有很明显的报错信息.在打开了网页以后网页上也一度显示

No scalar data was found…

这是因为tensorboard当初安装的时候没有弄好,(源码编译或者在虚拟环境中安装可能会出现的问题),可以运行下面命令来解决:
pip install tb-nightly
在Github上有人提交了这个Issues,我是参考这里得到的解决方案,链接如下:
1

When I used tensorboard as tensorboard –logdir=logs ,it told me that: #1146

2

TypeError with GetNext() for TF 1.8+ or 1.7 source #1111

猜你喜欢

转载自blog.csdn.net/handsome_for_kill/article/details/80269595
今日推荐