[求助]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)