Tensorboar + "TypeError: GetNext() takes 1 positional argument but 2 were given"
阿新 • • 發佈:2019-01-24
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