Home
last modified time | relevance | path

Searched refs:identity_node (Results 1 – 11 of 11) sorted by relevance

/external/tensorflow/tensorflow/core/common_runtime/
Dplacer_inspection_required_ops_utils.cc191 Node* identity_node = graph->AddNode(identity_def, &status); in AddInputIdentity() local
195 graph->AddEdge(edge->src(), edge->src_output(), identity_node, 0); in AddInputIdentity()
198 TF_RETURN_IF_ERROR(graph->UpdateEdge(identity_node, 0, node, input_idx)); in AddInputIdentity()
214 Node** identity_node) { in AddOutputIdentities() argument
225 *identity_node = graph->AddNode(identity_def, &status); in AddOutputIdentities()
229 graph->AddEdge(node, src_output, *identity_node, 0); in AddOutputIdentities()
252 Node* identity_node; in AddOutputIdentities() local
253 TF_RETURN_IF_ERROR(add_identity(src_output, identity_name, &identity_node)); in AddOutputIdentities()
256 << identity_node->DebugString(); in AddOutputIdentities()
260 TF_RETURN_IF_ERROR(graph->UpdateEdge(identity_node, 0, dst, dst_input)); in AddOutputIdentities()
[all …]
Dparallel_concat_optimizer.cc100 Node* identity_node; in Run() local
101 TF_RETURN_IF_ERROR(identity_def.Finalize(g, &identity_node)); in Run()
106 g->AddControlEdge(identity_node, e->dst()); in Run()
108 g->AddEdge(identity_node, 0, e->dst(), e->dst_input()); in Run()
/external/tensorflow/tensorflow/cc/tools/
Dfreeze_saved_model.cc167 NodeDef* identity_node) { in ConvertReadVariableOpToIdentity() argument
168 identity_node->set_name(node.name()); in ConvertReadVariableOpToIdentity()
169 identity_node->set_op("Identity"); in ConvertReadVariableOpToIdentity()
170 (*identity_node->mutable_attr())["T"] = node.attr().at("dtype"); in ConvertReadVariableOpToIdentity()
171 identity_node->add_input(node.input(0)); in ConvertReadVariableOpToIdentity()
/external/tensorflow/tensorflow/tools/graph_transforms/
Dremove_nodes_test.cc142 NodeDef* identity_node = graph_def.add_node(); in TestRemoveOutputNodes() local
143 identity_node->set_name("identity_node"); in TestRemoveOutputNodes()
144 identity_node->set_op("Identity"); in TestRemoveOutputNodes()
145 identity_node->add_input("add_node"); in TestRemoveOutputNodes()
Dsparsify_gather_test.cc135 NodeDef* identity_node = in TestSinglePartition() local
137 MakeGather("gather", gather_v2, identity_node, input_node, &graph_def); in TestSinglePartition()
154 {identity_node, concat_input_node, concat_axis_node}, &graph_def); in TestSinglePartition()
160 {identity_node, concat_input_node, in TestSinglePartition()
Dtransform_utils_test.cc444 NodeDef identity_node; in TestReplaceMatchingOpTypes() local
445 identity_node.set_op("Identity"); in TestReplaceMatchingOpTypes()
446 identity_node.set_name(original_name); in TestReplaceMatchingOpTypes()
447 *(identity_node.mutable_input()->Add()) = original_copy.name(); in TestReplaceMatchingOpTypes()
448 new_nodes->push_back(identity_node); in TestReplaceMatchingOpTypes()
/external/tensorflow/tensorflow/core/grappler/optimizers/data/
Dslack_test.cc143 NodeDef *identity_node = function_utils::AddNode( in TEST() local
150 strings::StrCat(identity_node->name(), ":output:0"); in TEST()
Dvectorization_utils_test.cc1373 const NodeDef& identity_node = vectorized->node_def( in TEST() local
1376 EXPECT_EQ(identity_node.input(0), in TEST()
1379 strings::StrCat(identity_node.name(), ":output:0")); in TEST()
/external/tensorflow/tensorflow/core/grappler/
Dmutable_graph_view.cc1002 NodeDef* identity_node = GetNode(identity_name); in GetOrCreateIdentityConsumingSwitch() local
1003 if (identity_node == nullptr) { in GetOrCreateIdentityConsumingSwitch()
1010 identity_node = AddNode(std::move(new_node)); in GetOrCreateIdentityConsumingSwitch()
1012 return identity_node; in GetOrCreateIdentityConsumingSwitch()
/external/tensorflow/tensorflow/python/framework/
Dconvert_to_constants.py839 identity_node = array_ops.identity(
841 pruned_graph = self._func.prune([], [identity_node.name])()[0]
/external/tensorflow/tensorflow/core/grappler/optimizers/
Darithmetic_optimizer_test.cc772 const NodeDef* identity_node = node_map.GetNode("identity"); in TEST_F() local
773 ASSERT_NE(identity_node, nullptr); in TEST_F()
774 ASSERT_EQ(identity_node->input_size(), 1); in TEST_F()
775 EXPECT_EQ(identity_node->input(0), optimized_name); in TEST_F()