From a54f83b8aa79a61a5a1d3a5dfcac35879980e904 Mon Sep 17 00:00:00 2001 From: Syler Date: Fri, 14 Dec 2018 20:00:20 +0800 Subject: [PATCH] Update pipeline_test.py make it available to tf newest version --- seq2seq/test/pipeline_test.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/seq2seq/test/pipeline_test.py b/seq2seq/test/pipeline_test.py index 8456997b..d3866289 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()