aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--tensorflow/python/autograph/core/converter_testing.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/tensorflow/python/autograph/core/converter_testing.py b/tensorflow/python/autograph/core/converter_testing.py
index dc2d419d34..fcdbd0a82c 100644
--- a/tensorflow/python/autograph/core/converter_testing.py
+++ b/tensorflow/python/autograph/core/converter_testing.py
@@ -128,7 +128,13 @@ class TestCase(test.TestCase):
@contextlib.contextmanager
def converted(self, entity, converter_module, namespace, *tf_symbols):
node, ctx = self.prepare(entity, namespace)
- node = converter_module.transform(node, ctx)
+
+ if not isinstance(converter_module, (list, tuple)):
+ converter_module = (converter_module,)
+ for m in converter_module:
+ node = m.transform(node, ctx)
+ node = converter.standard_analysis(node, ctx, is_initial=True)
+
with self.compiled(node, namespace, *tf_symbols) as result:
yield result