parameters: (from_ops, reached_ops)
docstring: Mark all ops reached from "from_ops".
  
    Args:
      from_ops: list of Operations.
      reached_ops: list of booleans, indexed by operation id.
docstring_summary: Mark all ops reached from "from_ops".
docstring_tokens: Mark all ops reached from from_ops .
function: def _MarkReachedOps(from_ops, reached_ops):
    """Mark all ops reached from "from_ops".
  
    Args:
      from_ops: list of Operations.
      reached_ops: list of booleans, indexed by operation id.
    """
    queue = collections.deque()
    queue.extend(from_ops)
    while queue:
      op = queue.popleft()
      if not reached_ops[op._id]:
        reached_ops[op._id] = True
        for output in op.outputs:
          queue.extend(output.consumers())
function_tokens: def _MarkReachedOps ( from_ops , reached_ops ) : queue = collections . deque ( ) queue . extend ( from_ops ) while queue : op = queue . popleft ( ) if not reached_ops [ op . _id ] : reached_ops [ op . _id ] = True for output in op . outputs : queue . extend ( output . consumers ( ) )