attend2u
attend2u copied to clipboard
getting error while training on CPU
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/lalit/notebooks/Lalit/image_caption/attend2u/train.py", line 211, in
Syntax has changed since 1.4, you can use the following code below -
def __init__(self, FLAGS): attrs = FLAGS.flag_values_dict() for attr in attrs: setattr(self, attr.lower(), getattr(FLAGS, attr))