parameters: (ops, regex)
return_statement: return filter_ops(ops, lambda op: regex_obj.search(op.name))
docstring: Get all the operations that match the given regex.
  
    Args:
      ops: an object convertible to a list of tf.Operation.
      regex: a regular expression matching the operation's name.
        For example, "^foo(/.*)?$" will match all the operations in the "foo"
        scope.
    Returns:
      A list of tf.Operation.
    Raises:
      TypeError: if ops cannot be converted to a list of tf.Operation.
docstring_summary: Get all the operations that match the given regex.
docstring_tokens: Get all the operations that match the given regex .
function: def filter_ops_from_regex(ops, regex):
    """Get all the operations that match the given regex.
  
    Args:
      ops: an object convertible to a list of tf.Operation.
      regex: a regular expression matching the operation's name.
        For example, "^foo(/.*)?$" will match all the operations in the "foo"
        scope.
    Returns:
      A list of tf.Operation.
    Raises:
      TypeError: if ops cannot be converted to a list of tf.Operation.
    """
    ops = util.make_list_of_op(ops)
    regex_obj = make_regex(regex)
    return filter_ops(ops, lambda op: regex_obj.search(op.name))
function_tokens: def filter_ops_from_regex ( ops , regex ) : ops = util . make_list_of_op ( ops ) regex_obj = make_regex ( regex ) return filter_ops ( ops , lambda op : regex_obj . search ( op . name ) )