Home
last modified time | relevance | path

Searched refs:AsControlDependency (Results 1 – 20 of 20) sorted by relevance

/external/tensorflow/tensorflow/core/grappler/optimizers/
Ddebug_stripper.cc52 inp = AsControlDependency(NodeName(inp)); in Optimize()
68 *node.mutable_input(i) = AsControlDependency(NodeName(node.input(i))); in Optimize()
Dshape_optimizer.cc118 size_node.set_input(1, AsControlDependency(node)); in Optimize()
186 node.set_input(0, AsControlDependency(node.input(0))); in Optimize()
187 node.set_input(1, AsControlDependency(node.input(1))); in Optimize()
Ddependency_optimizer.cc85 if (consumer_input == AsControlDependency(node.name())) { in SafeToRemoveIdentity()
421 new_input = AsControlDependency(NodeName(input_to_forward)); in OptimizeNode()
433 consumer->add_input(AsControlDependency(input->name())); in OptimizeNode()
441 consumer, AsControlDependency(node_name), node_map_.get()); in OptimizeNode()
723 it->second->add_input(AsControlDependency(*input)); in GroupCrossDeviceControlEdges()
734 node->add_input(AsControlDependency(*entry.second)); in GroupCrossDeviceControlEdges()
Dmodel_pruner.cc156 add_as_control ? AsControlDependency(NodeName(input)) : input; in ForwardInputsInternal()
165 add_as_control ? AsControlDependency(NodeName(input)) : input; in ForwardInputsInternal()
174 add_as_control ? AsControlDependency(NodeName(input)) : input; in ForwardInputsInternal()
Dconstant_folding.cc88 if (input == ctrl_input || AsControlDependency(input) == ctrl_input) { in MaybeAddControlInput()
107 const string old_input_ctrl_dep = AsControlDependency(NodeName(old_input)); in MaybeRemoveControlInput()
217 return AsControlDependency(node); in AddControlDependency()
228 return AsControlDependency(*output); in AddControlDependency()
252 return AsControlDependency(*added_node); in AddControlDependency()
306 consumer->add_input(AsControlDependency(node->name())); in ForwardInputs()
485 node->set_input(0, AsControlDependency(NodeName(node->input(0)))); in MaterializeShapes()
880 const string ctrl_dep = AsControlDependency(node->input(i)); in MaterializeConstantValuedNode()
1438 *const_out->add_input() = AsControlDependency(*node); in FoldMergeNode()
1451 *const_index->add_input() = AsControlDependency(*node); in FoldMergeNode()
[all …]
Dconstant_folding_test.cc260 {"in1", AsControlDependency("paddings1"), AsControlDependency("c1")}, in PaddingWithZeroSize()
2085 AddNode("s1", "Identity", {"in1", AsControlDependency("split_dim")}, {}, in TEST_F()
2134 {"in1", AsControlDependency("size_splits1"), in TEST_F()
2135 AsControlDependency("split_dim")}, in TEST_F()
2184 {"in2", AsControlDependency("in1"), AsControlDependency("p2")}, {}, in TEST_F()
2218 AddNode("s2", "Identity", {"in2", AsControlDependency("in1")}, {}, &want); in TEST_F()
2267 {"in2", AsControlDependency("in1"), AsControlDependency("a2")}, {}, in TEST_F()
2302 {"in1", AsControlDependency("begin"), AsControlDependency("size")}, in TEST_F()
2350 {"in1", AsControlDependency("begin1"), AsControlDependency("size")}, in TEST_F()
2399 {"in1", AsControlDependency("begin"), AsControlDependency("end"), in TEST_F()
[all …]
Darithmetic_optimizer.cc118 if (input == new_input || AsControlDependency(input) == new_input) { in MaybeAddControlInput()
2602 node->set_input(1, AsControlDependency(y->name())); in TrySimplify()
2623 node->add_input(AsControlDependency(y->name())); in TrySimplify()
2634 node->set_input(1, AsControlDependency(y->name())); in TrySimplify()
2639 node->set_input(1, AsControlDependency(y->name())); in TrySimplify()
2655 node->set_input(0, AsControlDependency(x->name())); in TrySimplify()
2656 node->set_input(1, AsControlDependency(y->name())); in TrySimplify()
2662 node->set_input(1, AsControlDependency(y->name())); in TrySimplify()
2667 node->set_input(1, AsControlDependency(y->name())); in TrySimplify()
2779 node->add_input(AsControlDependency(y->name())); in TrySimplifyInternal()
[all …]
Dmemory_optimizer.cc685 AsControlDependency(NodeName(node->input(min_input_id))); in SchedulingPass()
731 *node->add_input() = AsControlDependency(accum->name()); in SchedulingPass()
Dlayout_optimizer.cc909 *const_node->add_input() = AsControlDependency(depended_node); in AddNodePermNHWCToNCHW()
921 *const_node->add_input() = AsControlDependency(depended_node); in AddNodePermNCHWToNHWC()
1420 *node->add_input() = AsControlDependency(depended_node); in AddNodeShapeConst()
Dloop_optimizer.cc148 *consumer->mutable_input(i) = AsControlDependency(*const_node); in HandleConst()
Dgeneric_layout_optimizer_transposer.cc523 is_in_frame ? AsControlDependency(src_node_def->name()) : ""; in UpdateEdge()
1270 new_node.add_input(AsControlDependency(string(depended_node))); in AddNodeShapeConst()
Dfunction_optimizer.cc518 existing_control_deps.insert(AsControlDependency(NodeName(input))); in RemovePushedDownConstInputs()
Darithmetic_optimizer_test.cc2767 AddNode("out0", "Const", {AsControlDependency("x")}, {}, &want); in TEST_F()
2810 AddNode("out1", "Log1p", {"x2", AsControlDependency("x3")}, {}, &want); in TEST_F()
2847 AddNode("exp1", "Exp", {"x1", AsControlDependency("x3")}, {}, &want); in TEST_F()
2848 AddNode("out1", "Expm1", {"x1", AsControlDependency("x3")}, {}, &want); in TEST_F()
Dremapper.cc1468 *new_shape.add_input() = AsControlDependency(scale); in IsCpuCompatibleDataType()
/external/tensorflow/tensorflow/core/grappler/
Dutils_test.cc216 TEST_F(UtilsTest, AsControlDependency) { in TEST_F() argument
219 EXPECT_EQ(AsControlDependency(node), "^foo"); in TEST_F()
220 EXPECT_EQ(AsControlDependency(node.name()), "^foo"); in TEST_F()
221 EXPECT_EQ(AsControlDependency("^foo"), "^foo"); in TEST_F()
Dutils.h315 string AsControlDependency(const NodeDef& node);
319 string AsControlDependency(const string& node);
Dutils.cc143 string AsControlDependency(const NodeDef& node) { in AsControlDependency() function
147 string AsControlDependency(const string& node_name) { in AsControlDependency() function
Dmutable_graph_view.cc981 AsControlDependency(fanout.node->name())); in GetControllingFaninToAdd()
991 AsControlDependency(string(node_name))); in GetControllingFaninToAdd()
1467 node->set_input(pos, AsControlDependency(control->name())); in UpdateAllRegularFaninsToControlling()
Dmutable_graph_view_test.cc1701 string fanout = IsControlInput(fanin) ? AsControlDependency("c") : "c"; in TestUpdateFaninFromFaninToNodeAsSwitchControl()
/external/tensorflow/tensorflow/core/grappler/utils/
Dgraph_view.cc1178 node->add_input(AsControlDependency(string(fanin_node_name))); in AddControllingFaninInternal()