parameters: (ops, regex)
return_statement: return filter_ts(ops,
                     positive_filter=lambda op: regex_obj.search(op.name))
docstring: r"""Get all the tensors linked to ops that match the given regex.
  
    Args:
      ops: an object convertible to a list of tf.Operation.
      regex: a regular expression matching the tensors' name.
        For example, "^foo(/.*)?:\d+$" will match all the tensors in the "foo"
        scope.
    Returns:
      A list of tf.Tensor.
    Raises:
      TypeError: if ops cannot be converted to a list of tf.Operation.
docstring_summary: r"""Get all the tensors linked to ops that match the given regex.
docstring_tokens: r Get all the tensors linked to ops that match the given regex .
function: def filter_ts_from_regex(ops, regex):
    r"""Get all the tensors linked to ops that match the given regex.
  
    Args:
      ops: an object convertible to a list of tf.Operation.
      regex: a regular expression matching the tensors' name.
        For example, "^foo(/.*)?:\d+$" will match all the tensors in the "foo"
        scope.
    Returns:
      A list of tf.Tensor.
    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_ts(ops,
                     positive_filter=lambda op: regex_obj.search(op.name))
function_tokens: def filter_ts_from_regex ( ops , regex ) : ops = util . make_list_of_op ( ops ) regex_obj = make_regex ( regex ) return filter_ts ( ops , positive_filter = lambda op : regex_obj . search ( op . name ) )