flags = tf.app.flagsflags.DEFINE_boolean('test_mode', False, 'This is the descriptionI want A.')
flags.DEFINE_boolean('cool_mode', True, 'This is the description I want B.')
标题中提到的错误是由于调用而发生的 FLAGS = tf.app.flags.FLAGS 与此相关的问题有多个: How could I solve the flags=tensorflow.app.flagserror AttributeError: module 'tensorflow' has no attribute 'app' 可以了解到,这是由于Tensorflow版本的更改而导致的
argparse.ArgumentError: argument --batch_size: conflicting option string(s): --batch_sizeI tensorflowdso_loader.cc:101] successfully opened CUDA library libcublas.so.7.0 locally
I tensorflowdso_loader.cc:101] successfully opened CUDA