加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

tensorflow 升级到1.9-rc0,tensorboard 报错:TypeError: GetNex

发布时间:2020-12-17 20:50:10 所属栏目:安全 来源:网络整理
导读:Exception in thread Reloader: Traceback (most recent call last): ? File "/usr/lib/python2.7/threading.py",line 801,in __bootstrap_inner ??? self.run() ? File "/usr/lib/python2.7/threading.py",line 754,in run ??? self.__target(*self.__args,

Exception in thread Reloader:
Traceback (most recent call last):
? File "/usr/lib/python2.7/threading.py",line 801,in __bootstrap_inner
??? self.run()
? File "/usr/lib/python2.7/threading.py",line 754,in run
??? self.__target(*self.__args,**self.__kwargs)
? File "/usr/local/lib/python2.7/dist-packages/tensorboard/backend/application.py",line 350,in _reload_forever
??? reload_multiplexer(multiplexer,path_to_run)
? File "/usr/local/lib/python2.7/dist-packages/tensorboard/backend/application.py",line 324,in reload_multiplexer
??? multiplexer.Reload()
? File "/usr/local/lib/python2.7/dist-packages/tensorboard/backend/event_processing/plugin_event_multiplexer.py",line 195,in Reload
??? accumulator.Reload()
? File "/usr/local/lib/python2.7/dist-packages/tensorboard/backend/event_processing/plugin_event_accumulator.py",line 188,in Reload
??? for event in self._generator.Load():
? File "/usr/local/lib/python2.7/dist-packages/tensorboard/backend/event_processing/directory_watcher.py",line 88,in Load
??? for event in self._LoadInternal():
? File "/usr/local/lib/python2.7/dist-packages/tensorboard/backend/event_processing/directory_watcher.py",line 112,in _LoadInternal
??? for event in self._loader.Load():
? File "/usr/local/lib/python2.7/dist-packages/tensorboard/backend/event_processing/event_file_loader.py",line 53,in Load
??? self._reader.GetNext(status)
TypeError: GetNext() takes exactly 1 argument (2 given)

这个原因是由于tensorflow 在1.7以后对不需要status参数了,可以用最新的event_file_loader.py代码代替旧的,

代码链接:

https://github.com/tensorflow/tensorboard/edit/master/tensorboard/backend/event_processing/event_file_loader.py

?

新旧文件对比:

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读