class_docstr: Contains control flow-specific FuncGraph logic.
class_docstr_tok: ["Contains","control","flow-specific","FuncGraph","logic","."]
code: def __init__(self, *args, **kwargs):
      super(ControlFlowFuncGraph, self).__init__(*args, **kwargs)
      outer_graph = self.outer_graph
      # Unlike tf.function, control flow FuncGraphs are generally created one per
      # op. This means hard-coding any outer device scopes in the body (rather
      # than inspecting the call-time placement of the control flow op) makes
      # sense.
      self._device_function_stack = (
          outer_graph._device_function_stack.copy()
      )  # pylint: disable=protected-access
      self.is_control_flow_graph = True
      if ops.executing_eagerly_outside_functions():
          func_graph.override_func_graph_name_scope(
              self, self.outer_graph.get_name_scope()
          )
  
file_path: tensorflow/tensorflow/python/ops/control_flow_v2_func_graphs.py
imports: from tensorflow.python.framework import func_graph
  from tensorflow.python.framework import ops
label_desc: Use image node_id 1 to create a new ControlFlowFuncGraph object from inherited base classes: func_graph with example: obj = ControlFlowFuncGraph()