Home
last modified time | relevance | path

Searched refs:pre_order (Results 1 – 14 of 14) sorted by relevance

/external/tensorflow/tensorflow/core/grappler/utils/
Dtraversal_test.cc28 DfsCallbacks MkCallbacks(std::vector<string>* pre_order, in MkCallbacks() argument
31 return {[pre_order](const NodeDef* n) { pre_order->push_back(n->name()); }, in MkCallbacks()
52 std::vector<string> pre_order; in TEST() local
59 MkCallbacks(&pre_order, &post_order, &back_edges)); in TEST()
64 EXPECT_EQ(pre_order, expected_pre); in TEST()
83 std::vector<string> pre_order; in TEST() local
90 MkCallbacks(&pre_order, &post_order, &back_edges)); in TEST()
95 EXPECT_EQ(pre_order, expected_pre); in TEST()
113 std::vector<string> pre_order; in TEST() local
120 MkCallbacks(&pre_order, &post_order, &back_edges)); in TEST()
[all …]
Dtraversal.h40 : pre_order(std::move(pre)), in DfsCallbacks()
52 std::function<void(const NodeDef*)> pre_order; member
Dtraversal.cc94 if (callbacks.pre_order) { in DfsTraversal()
95 callbacks.pre_order(graph_view.GetNode(w.node)); in DfsTraversal()
/external/python/cpython3/Lib/lib2to3/
Drefactor.py195 self.pre_order, self.post_order = self.get_fixers()
204 for fixer in chain(self.post_order, self.pre_order):
209 elif fixer in self.pre_order:
406 for fixer in chain(self.pre_order, self.post_order):
410 self.traverse_by(self.bmi_pre_order_heads, tree.pre_order())
465 for fixer in chain(self.pre_order, self.post_order):
Dpytree.py93 def pre_order(self): member in Base
268 def pre_order(self): member in Node
272 yield from child.pre_order()
379 def pre_order(self): member in Leaf
/external/python/cpython2/Lib/lib2to3/
Drefactor.py210 self.pre_order, self.post_order = self.get_fixers()
219 for fixer in chain(self.post_order, self.pre_order):
224 elif fixer in self.pre_order:
421 for fixer in chain(self.pre_order, self.post_order):
425 self.traverse_by(self.bmi_pre_order_heads, tree.pre_order())
480 for fixer in chain(self.pre_order, self.post_order):
Dpytree.py104 def pre_order(self): member in Base
301 def pre_order(self): member in Node
305 for node in child.pre_order():
413 def pre_order(self): member in Leaf
/external/toolchain-utils/binary_search_tool/full_bisect_test/
Dmain.c7 char pre_order[] = { '/', '-', '+', '*', 'a', '^', 'x', '2', '&', 'b', 'y', variable
/external/yapf/yapftests/
Dcomment_splicer_test.py42 node.pre_order())):
/external/tensorflow/tensorflow/core/grappler/optimizers/
Dauto_mixed_precision.cc688 : pre_order(std::move(pre)), in DfsTypeCallbacks()
700 std::function<void(int)> pre_order; member
796 if (callbacks.pre_order) { in DfsTypeTraversal()
797 callbacks.pre_order(w.node); in DfsTypeTraversal()
/external/python/cpython3/Lib/lib2to3/tests/
Dtest_pytree.py194 self.assertEqual(list(n1.pre_order()), [n1, c1, l1, l2, l3])
Dtest_fixers.py24 for fixer in chain(self.refactor.pre_order,
/external/python/cpython2/Lib/lib2to3/tests/
Dtest_pytree.py216 self.assertEqual(list(n1.pre_order()), [n1, c1, l1, l2, l3])
Dtest_fixers.py25 for fixer in chain(self.refactor.pre_order,