Skip to content

Commit

Permalink
fix no attribute '_FlagValues' issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ChinaShrimp committed Jun 23, 2018
1 parent 9db1c98 commit 5cce00f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion seq2seq/test/pipeline_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@
def _clear_flags():
"""Resets Tensorflow's FLAG values"""
#pylint: disable=W0212
tf.app.flags.FLAGS = tf.app.flags._FlagValues()
for flag_key in dir(tf.app.flags.FLAGS):
delattr(tf.app.flags.FLAGS, flag_key)
#tf.app.flags.FLAGS = tf.app.flags._FlagValues()
tf.app.flags._global_parser = argparse.ArgumentParser()


Expand Down

0 comments on commit 5cce00f

Please sign in to comment.