message: Remove redundant context.graph_mode() calls.
diff: @@ -470,7 +470,7 @@ class GraphModeFunction(object):
  def _construct_backprop_function(self):
  """Constructs the backprop function object for this function."""
  - with self._graph.as_default(), context.graph_mode():
  + with self._graph.as_default():
  c_known_ops = set()
  c_captured_tensors = set()
  @@ -657,7 +657,6 @@ def _deterministic_dict_values(kwds):
  def _trace_and_define_function(name, func, compiled, args, kwds):
  """Defines and returns graph-mode version of func."""
  graph_key = ops.get_default_graph()._graph_key # pylint: disable=protected-access
  - with context.graph_mode():
  captures = {}
  tmp_graph = CapturingGraph(captures)
  # Inherit the graph key, since this is used for matching variables in
  