diff --git a/seq2seq/test/pipeline_test.py b/seq2seq/test/pipeline_test.py index 8456997b..17ce9fbc 100644 --- a/seq2seq/test/pipeline_test.py +++ b/seq2seq/test/pipeline_test.py @@ -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()