| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 4455 人关注过本帖
标题:[求助]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
快速回复:[求助]python运行tf.app.run()时异常,求帮忙,谢谢!!
数据加载中...
 
   



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

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