Searched refs:filter_ops (Results 1 – 2 of 2) sorted by relevance
61 self.assertEqual(len(ge.filter_ops(self.graph, True)), 8)63 len(ge.filter_ops(self.graph, lambda op: op.node_def.op == "Const")), 3)65 len(ge.filter_ops(self.graph, lambda op: op.node_def.op == "Add")), 5)
153 def filter_ops(ops, positive_filter): function186 return filter_ops(ops, lambda op: regex_obj.search(op.name))