parameters: (op, cops)
docstring: Remove the control inputs cops from co.
  
    Warning: this function is directly manipulating the internals of the
    `tf.Graph`.
  
    Args:
      op: a `tf.Operation` from which to remove the control inputs.
      cops: an object convertible to a list of `tf.Operation`.
    Raises:
      TypeError: if op is not a `tf.Operation`.
      ValueError: if any cop in cops is not a control input of op.
docstring_summary: Remove the control inputs cops from co.
docstring_tokens: Remove the control inputs cops from co .
function: def remove_control_inputs(op, cops):
    """Remove the control inputs cops from co.
  
    Warning: this function is directly manipulating the internals of the
    `tf.Graph`.
  
    Args:
      op: a `tf.Operation` from which to remove the control inputs.
      cops: an object convertible to a list of `tf.Operation`.
    Raises:
      TypeError: if op is not a `tf.Operation`.
      ValueError: if any cop in cops is not a control input of op.
    """
    if not isinstance(op, _tf_ops.Operation):
      raise TypeError("Expected a tf.Operation, got: {}", type(op))
    cops = _util.make_list_of_op(cops, allow_graph=False)
    for cop in cops:
      if cop not in op.control_inputs:
        raise ValueError("{} is not a control_input of {}".format(op.name,
                                                                  cop.name))
    # pylint: disable=protected-access
    op._control_inputs = [cop for cop in op._control_inputs if cop not in cops]
    op._recompute_node_def()
function_tokens: def remove_control_inputs ( op , cops ) : if not isinstance ( op , _tf_ops . Operation ) : raise TypeError ( "Expected a tf.Operation, got: {}" , type ( op ) ) cops = _util . make_list_of_op ( cops , allow_graph = False ) for cop in cops : if cop not in op . control_inputs : raise ValueError ( "{} is not a control_input of {}" . format ( op . name , cop . name ) ) # pylint: disable=protected-access op . _control_inputs = [ cop for cop in op . _control_inputs if cop not in cops ] op . _recompute_node_def ( )