parameters: (self, op)
docstring: Add a control dependency to the containing WhileContext.
  
      The added control dependency ensures that the outputs of this op
      belong to the WhileContext. Do nothing if the op is not contained
      in a WhileContext.
  
      Args:
        op: An operation.
docstring_summary: Add a control dependency to the containing WhileContext.
docstring_tokens: Add a control dependency to the containing WhileContext .
function: def _MaybeAddToWhileContext(self, op):
      """Add a control dependency to the containing WhileContext.
  
      The added control dependency ensures that the outputs of this op
      belong to the WhileContext. Do nothing if the op is not contained
      in a WhileContext.
  
      Args:
        op: An operation.
      """
      while_ctxt = self.GetWhileContext()
      if while_ctxt is not None:
        op._add_control_input(while_ctxt.GetControlPivot().op)
function_tokens: def _MaybeAddToWhileContext ( self , op ) : while_ctxt = self . GetWhileContext ( ) if while_ctxt is not None : op . _add_control_input ( while_ctxt . GetControlPivot ( ) . op )