parameters: (ops, positive_filter)
return_statement: return ts
docstring: Get all the tensors which are input or output of an op in ops.
  
    Args:
      ops: an object convertible to a list of `tf.Operation`.
      positive_filter: a function deciding whether to keep a tensor or not.
        If `True`, all the tensors are returned.
    Returns:
      A list of `tf.Tensor`.
    Raises:
      TypeError: if ops cannot be converted to a list of `tf.Operation`.
docstring_summary: Get all the tensors which are input or output of an op in ops.
docstring_tokens: Get all the tensors which are input or output of an op in ops .
function: def filter_ts(ops, positive_filter):
    """Get all the tensors which are input or output of an op in ops.
  
    Args:
      ops: an object convertible to a list of `tf.Operation`.
      positive_filter: a function deciding whether to keep a tensor or not.
        If `True`, all the tensors are returned.
    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)
    ts = _get_input_ts(ops)
    util.concatenate_unique(ts, _get_output_ts(ops))
    if positive_filter is not True:
      ts = [t for t in ts if positive_filter(t)]
    return ts
function_tokens: def filter_ts ( ops , positive_filter ) : ops = util . make_list_of_op ( ops ) ts = _get_input_ts ( ops ) util . concatenate_unique ( ts , _get_output_ts ( ops ) ) if positive_filter is not True : ts = [ t for t in ts if positive_filter ( t ) ] return ts