标题:[求助]python运行tf.app.run()时异常,求帮忙,谢谢!!
取消只看楼主
ly973021784
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2018-4-24
 问题点数:0 回复次数:0 
[求助]python运行tf.app.run()时异常,求帮忙,谢谢!!
Traceback (most recent call last):
  File "C:\Users\lenovo\AppData\Local\Programs\Python\Python35\lib\site-packages\absl\flags\_flag.py", line 166, in _parse
    return self.parser.parse(argument)
  File "C:\Users\lenovo\AppData\Local\Programs\Python\Python35\lib\site-packages\absl\flags\_argument_parser.py", line 292, in parse
    raise ValueError('Non-boolean argument to boolean flag', argument)
ValueError: ('Non-boolean argument to boolean flag', 128)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "E:\python\tersonflow\Chinese_rec.py", line 38, in <module>
    tf.app.flags.DEFINE_boolean('batch_size', 128, 'Validation batch size')
  File "C:\Users\lenovo\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\platform\flags.py", line 57, in wrapper
    return original_function(*args, **kwargs)
  File "C:\Users\lenovo\AppData\Local\Programs\Python\Python35\lib\site-packages\absl\flags\_defines.py", line 267, in DEFINE_boolean
    DEFINE_flag(_flag.BooleanFlag(name, default, help, **args),
  File "C:\Users\lenovo\AppData\Local\Programs\Python\Python35\lib\site-packages\absl\flags\_flag.py", line 293, in __init__
    p, None, name, default, help, short_name, 1, **args)
  File "C:\Users\lenovo\AppData\Local\Programs\Python\Python35\lib\site-packages\absl\flags\_flag.py", line 107, in __init__
    self._set_default(default)
  File "C:\Users\lenovo\AppData\Local\Programs\Python\Python35\lib\site-packages\absl\flags\_flag.py", line 196, in _set_default
    self.default = self._parse(value)
  File "C:\Users\lenovo\AppData\Local\Programs\Python\Python35\lib\site-packages\absl\flags\_flag.py", line 169, in _parse
    'flag --%s=%s: %s' % (self.name, argument, e))
absl.flags._exceptions.IllegalFlagValueError: flag --batch_size=128: ('Non-boolean argument to boolean flag', 128)
搜索更多相关主题的帖子: python File Users lib line 
2018-04-24 23:32



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-486365-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.151907 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved