Cleanup: replace an errant `in_eager_mode()` with `executing_eagerly()`.
authorAkshay Agrawal <akshayka@google.com>
Thu, 22 Mar 2018 18:29:25 +0000 (11:29 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Thu, 22 Mar 2018 18:34:55 +0000 (11:34 -0700)
PiperOrigin-RevId: 190098277

tensorflow/python/framework/ops.py

index b3fa39f..de222e1 100644 (file)
@@ -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()