Tensorflow 错误:The flag 'xxx' is defined twice

添加

FLAGS = tf.app.flags.FLAGS
lst = list(FLAGS._flags().keys())
for key in lst:
    FLAGS.__delattr__(key)

FLAGS = tf.app.flags.FLAGS
lst = list(FLAGS._flags().keys())
for key in lst:
    FLAGS.delattr(key)

 

 

参考文献:

https://blog.csdn.net/qq_40488484/article/details/89113678

posted @ 2019-08-18 12:25  jhc888007  阅读(3011)  评论(0编辑  收藏  举报