parameters: (ops, check_graph=True, allow_graph=True, ignore_ts=False)
docstring: Convert ops to a list of `tf.Operation`.
  
    Args:
      ops: can be an iterable of `tf.Operation`, a `tf.Graph` or a single
        operation.
      check_graph: if `True` check if all the operations belong to the same graph.
      allow_graph: if `False` a `tf.Graph` cannot be converted.
      ignore_ts: if True, silently ignore `tf.Tensor`.
    Returns:
      A newly created list of `tf.Operation`.
    Raises:
      TypeError: if ops cannot be converted to a list of `tf.Operation` or,
       if `check_graph` is `True`, if all the ops do not belong to the
       same graph.
docstring_summary: Convert ops to a list of `tf.Operation`.
docstring_tokens: Convert ops to a list of tf . Operation .
function: def make_list_of_op(ops, check_graph=True, allow_graph=True, ignore_ts=False):
    """Convert ops to a list of `tf.Operation`.
  
    Args:
      ops: can be an iterable of `tf.Operation`, a `tf.Graph` or a single
        operation.
      check_graph: if `True` check if all the operations belong to the same graph.
      allow_graph: if `False` a `tf.Graph` cannot be converted.
      ignore_ts: if True, silently ignore `tf.Tensor`.
    Returns:
      A newly created list of `tf.Operation`.
    Raises:
      TypeError: if ops cannot be converted to a list of `tf.Operation` or,
       if `check_graph` is `True`, if all the ops do not belong to the
       same graph.
    """
    if isinstance(ops, tf_ops.Graph):
      if allow_graph:
        return ops.get_operations()
      else:
        raise TypeError("allow_graph is False: cannot convert a tf.Graph.")
    else:
      if not is_iterable(ops):
        ops = [ops]
      if not ops:
        return []
      if check_graph:
        check_types = None if ignore_ts else tf_ops.Operation
        get_unique_graph(ops, check_types=check_types)
      return [op for op in ops if isinstance(op, tf_ops.Operation)]
function_tokens: def make_list_of_op ( ops , check_graph = True , allow_graph = True , ignore_ts = False ) : if isinstance ( ops , tf_ops . Graph ) : if allow_graph : return ops . get_operations ( ) else : raise TypeError ( "allow_graph is False: cannot convert a tf.Graph." ) else : if not is_iterable ( ops ) : ops = [ ops ] if not ops : return [ ] if check_graph : check_types = None if ignore_ts else tf_ops . Operation get_unique_graph ( ops , check_types = check_types ) return [ op for op in ops if isinstance ( op , tf_ops . Operation ) ]