From ee45529b5b8f89726eb4346995c685bd5c605c02 Mon Sep 17 00:00:00 2001 From: Brian Lee Date: Thu, 4 Apr 2019 10:39:57 -0700 Subject: [PATCH] Reword exception message for failed AutoGraph conversion PiperOrigin-RevId: 241957881 --- tensorflow/python/autograph/impl/api.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tensorflow/python/autograph/impl/api.py b/tensorflow/python/autograph/impl/api.py index eae03e8ac13..44e1d6dda40 100644 --- a/tensorflow/python/autograph/impl/api.py +++ b/tensorflow/python/autograph/impl/api.py @@ -333,7 +333,9 @@ def converted_call(f, owner, options, args, kwargs): raise logging.warn( - 'Entity %s could not be transformed and will be staged without change.' + 'Entity %s could not be transformed and will be executed as-is.' + ' Some features (e.g. tensor-dependent conditionals and loops) may not' + ' work as expected.' ' Error details can be found in the logs when running with the env' ' variable AUTOGRAPH_VERBOSITY >= 1. Please report this to the' ' AutoGraph team. Cause: %s', target_entity, e)