Home
last modified time | relevance | path

Searched refs:positive_filter (Results 1 – 3 of 3) sorted by relevance

/external/tensorflow/tensorflow/contrib/graph_editor/
Dselect.py115 def filter_ts(ops, positive_filter): argument
130 if positive_filter is not True:
131 ts = [t for t in ts if positive_filter(t)]
150 return filter_ts(ops, positive_filter=lambda op: regex_obj.search(op.name))
153 def filter_ops(ops, positive_filter): argument
166 if positive_filter is not True: # pylint: disable=g-explicit-bool-comparison
167 ops = [op for op in ops if positive_filter(op)]
665 positive_filter = None
673 positive_filter = v
695 if positive_filter is None or positive_filter(op_):
[all …]
/external/tensorflow/tensorflow/contrib/graph_editor/tests/
Dmatch.py63 def __init__(self, positive_filter): argument
69 positive_filter = self._finalize_positive_filter(positive_filter)
70 self.positive_filters.append(positive_filter)
90 for positive_filter in self.positive_filters:
91 if not positive_filter(op):
/external/v8/src/
Dutils.cc443 bool positive_filter = true; in PassesFilter() local
446 positive_filter = false; in PassesFilter()
449 if (*filter_it == '*') return positive_filter; in PassesFilter()
450 if (*filter_it == '~') return !positive_filter; in PassesFilter()
454 if (!positive_filter) min_match_length--; // Subtract 1 for leading '-'. in PassesFilter()
457 if (name.size() < min_match_length) return !positive_filter; in PassesFilter()
465 return positive_filter; in PassesFilter()
469 return !positive_filter; in PassesFilter()
474 return positive_filter; in PassesFilter()
477 return !positive_filter; in PassesFilter()