diff options
author | 2018-03-22 11:29:25 -0700 | |
---|---|---|
committer | 2018-03-22 11:34:55 -0700 | |
commit | 5f50c1ea7d62d12253b56030110e68c8c1e87e7c (patch) | |
tree | 16aaa66f946f62dc1308c6505c133a8b175c064e | |
parent | 282750fee5e2df502436ca9ef6a95283f8adab34 (diff) |
Cleanup: replace an errant `in_eager_mode()` with `executing_eagerly()`.
PiperOrigin-RevId: 190098277
-rw-r--r-- | tensorflow/python/framework/ops.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/python/framework/ops.py b/tensorflow/python/framework/ops.py index b3fa39fdab..de222e1932 100644 --- a/tensorflow/python/framework/ops.py +++ b/tensorflow/python/framework/ops.py @@ -5411,7 +5411,7 @@ def get_name_scope(): Returns: A string representing the current name scope. """ - if context.in_eager_mode(): + if context.executing_eagerly(): return context.context().scope_name.rstrip("/") return get_default_graph().get_name_scope() |