Home
last modified time | relevance | path

Searched refs:nodes_to_delete (Results 1 – 21 of 21) sorted by relevance

/external/tensorflow/tensorflow/core/grappler/optimizers/data/
Dauto_shard.cc161 absl::flat_hash_set<string>* nodes_to_delete) { in RemoveShuffleDataset() argument
164 nodes_to_delete->insert(node.name()); in RemoveShuffleDataset()
169 RemoveShuffleDataset(graph, *fanin.node, nodes_to_delete)); in RemoveShuffleDataset()
179 absl::flat_hash_set<string>* nodes_to_delete) { in RecursivelyHandleOp() argument
189 flib, graph, nodes_to_delete)); in RecursivelyHandleOp()
205 TF_RETURN_IF_ERROR(RemoveShuffleDataset(graph, node, nodes_to_delete)); in RecursivelyHandleOp()
212 TF_RETURN_IF_ERROR(RemoveShuffleDataset(graph, node, nodes_to_delete)); in RecursivelyHandleOp()
224 nodes_to_delete); in RecursivelyHandleOp()
234 absl::flat_hash_set<string> nodes_to_delete; in OptimizeGraph() local
246 &graph, &nodes_to_delete)); in OptimizeGraph()
[all …]
Dshuffle_and_repeat_fusion.cc42 absl::flat_hash_set<string> nodes_to_delete; in OptimizeAndCollectStats() local
93 nodes_to_delete.insert(shuffle_node.name()); in OptimizeAndCollectStats()
94 nodes_to_delete.insert(repeat_node.name()); in OptimizeAndCollectStats()
98 TF_RETURN_IF_ERROR(graph.DeleteNodes(nodes_to_delete)); in OptimizeAndCollectStats()
Dmake_numa_aware.cc47 absl::flat_hash_set<string> nodes_to_delete; in OptimizeAndCollectStats() local
54 nodes_to_delete.insert(node.name()); in OptimizeAndCollectStats()
57 TF_RETURN_IF_ERROR(graph.DeleteNodes(nodes_to_delete)); in OptimizeAndCollectStats()
Dmap_and_batch_fusion.cc108 absl::flat_hash_set<string> nodes_to_delete; in OptimizeAndCollectStats() local
130 nodes_to_delete.insert(map_node->name()); in OptimizeAndCollectStats()
131 nodes_to_delete.insert(batch_node.name()); in OptimizeAndCollectStats()
135 TF_RETURN_IF_ERROR(graph.DeleteNodes(nodes_to_delete)); in OptimizeAndCollectStats()
Dfilter_fusion.cc70 absl::flat_hash_set<string> nodes_to_delete; in OptimizeAndCollectStats() local
124 nodes_to_delete.insert(first_filter_node->name()); in OptimizeAndCollectStats()
125 nodes_to_delete.insert(second_filter_node->name()); in OptimizeAndCollectStats()
129 TF_RETURN_IF_ERROR(graph.DeleteNodes(nodes_to_delete)); in OptimizeAndCollectStats()
Dmap_fusion.cc90 absl::flat_hash_set<string> nodes_to_delete; in OptimizeAndCollectStats() local
146 nodes_to_delete.insert(parent_map_node->name()); in OptimizeAndCollectStats()
147 nodes_to_delete.insert(map_node->name()); in OptimizeAndCollectStats()
151 TF_RETURN_IF_ERROR(graph.DeleteNodes(nodes_to_delete)); in OptimizeAndCollectStats()
Dmap_and_filter_fusion.cc107 absl::flat_hash_set<string> nodes_to_delete; in OptimizeAndCollectStats() local
167 nodes_to_delete.insert(map_node->name()); in OptimizeAndCollectStats()
168 nodes_to_delete.insert(filter_node->name()); in OptimizeAndCollectStats()
172 TF_RETURN_IF_ERROR(graph.DeleteNodes(nodes_to_delete)); in OptimizeAndCollectStats()
Dmap_parallelization.cc61 absl::flat_hash_set<string> nodes_to_delete; in OptimizeAndCollectStats() local
82 nodes_to_delete.insert(map_node->name()); in OptimizeAndCollectStats()
86 TF_RETURN_IF_ERROR(graph.DeleteNodes(nodes_to_delete)); in OptimizeAndCollectStats()
Dnoop_elimination.cc80 absl::flat_hash_set<string> nodes_to_delete; in OptimizeAndCollectStats() local
87 nodes_to_delete.insert(node.name()); in OptimizeAndCollectStats()
91 TF_RETURN_IF_ERROR(graph.DeleteNodes(nodes_to_delete)); in OptimizeAndCollectStats()
Dhoist_random_uniform.cc231 absl::flat_hash_set<string> nodes_to_delete; in OptimizeAndCollectStats() local
277 nodes_to_delete.insert(map_node->name()); in OptimizeAndCollectStats()
281 TF_RETURN_IF_ERROR(graph.DeleteNodes(nodes_to_delete)); in OptimizeAndCollectStats()
Dmap_vectorization.cc516 absl::flat_hash_set<string> nodes_to_delete; in OptimizeAndCollectStats() local
/external/tensorflow/tensorflow/core/kernels/boosted_trees/
Dresources.cc313 std::vector<int32> nodes_to_delete; in PostPruneTree() local
325 RecursivelyDoPostPrunePreparation(current_tree, 0, &nodes_to_delete, in PostPruneTree()
328 if (nodes_to_delete.empty()) { in PostPruneTree()
334 std::sort(nodes_to_delete.begin(), nodes_to_delete.end()); in PostPruneTree()
350 if (index_for_deleted < nodes_to_delete.size() && in PostPruneTree()
351 i == nodes_to_delete[index_for_deleted]) { in PostPruneTree()
376 if (index_for_deleted < nodes_to_delete.size() && in PostPruneTree()
377 i == nodes_to_delete[index_for_deleted]) { in PostPruneTree()
444 std::vector<int32>* nodes_to_delete, in RecursivelyDoPostPrunePreparation() argument
455 nodes_to_delete, nodes_meta); in RecursivelyDoPostPrunePreparation()
[all …]
Dresources.h162 std::vector<int32>* nodes_to_delete,
/external/tensorflow/tensorflow/core/grappler/optimizers/
Dmodel_pruner.cc128 const absl::flat_hash_set<const NodeDef*>& nodes_to_delete, in ForwardInputsInternal() argument
150 if (nodes_to_delete.find(input_node) != nodes_to_delete.end()) { in ForwardInputsInternal()
151 ForwardInputsInternal(*input_node, nodes_to_delete, in ForwardInputsInternal()
162 const absl::flat_hash_set<const NodeDef*>& nodes_to_delete, in ForwardInputs() argument
167 ForwardInputsInternal(original_node, nodes_to_delete, in ForwardInputs()
458 absl::flat_hash_set<const NodeDef*> nodes_to_delete; in Optimize() local
484 nodes_to_delete.insert(&node); in Optimize()
492 if (nodes_to_delete.empty()) { in Optimize()
502 nodes_to_delete.find(&node) == nodes_to_delete.end()) { in Optimize()
506 ForwardInputs(node, nodes_to_delete, new_node, &optimized_nodes, in Optimize()
[all …]
Ddependency_optimizer.cc226 std::set<int>* nodes_to_delete) { in OptimizeNode() argument
262 nodes_to_delete->insert(node_to_idx_[node]); in OptimizeNode()
428 nodes_to_delete->insert(node_idx); in OptimizeNode()
445 std::set<int> nodes_to_delete; in OptimizeDependencies() local
456 while (nodes_to_delete.find(node_to_simplify) != nodes_to_delete.end()) { in OptimizeDependencies()
459 OptimizeNode(node_to_simplify, &nodes_to_simplify, &nodes_to_delete); in OptimizeDependencies()
463 VLOG(1) << "Deleted " << nodes_to_delete.size() << " out of " in OptimizeDependencies()
465 EraseNodesFromGraph(nodes_to_delete, optimized_graph_); in OptimizeDependencies()
Ddependency_optimizer.h65 std::set<int>* nodes_to_delete);
Dconstant_folding.cc1477 std::vector<int> nodes_to_delete; in FoldGraph() local
1480 if (fanout.empty()) nodes_to_delete.push_back(i); in FoldGraph()
1482 EraseNodesFromGraph(std::move(nodes_to_delete), output); in FoldGraph()
/external/tensorflow/tensorflow/core/grappler/
Dutils.cc381 void EraseNodesFromGraphImpl(const UniqueContainer& nodes_to_delete, in EraseNodesFromGraphImpl() argument
387 for (auto it = nodes_to_delete.rbegin(); it != nodes_to_delete.rend(); ++it) { in EraseNodesFromGraphImpl()
392 graph->mutable_node()->DeleteSubrange(last + 1, nodes_to_delete.size()); in EraseNodesFromGraphImpl()
403 void EraseNodesFromGraph(const std::set<int>& nodes_to_delete, in EraseNodesFromGraph() argument
405 EraseNodesFromGraphImpl(nodes_to_delete, graph); in EraseNodesFromGraph()
408 void EraseNodesFromGraph(std::vector<int>&& nodes_to_delete, GraphDef* graph) { in EraseNodesFromGraph() argument
409 STLSortAndRemoveDuplicates(&nodes_to_delete); in EraseNodesFromGraph()
410 EraseNodesFromGraphImpl(nodes_to_delete, graph); in EraseNodesFromGraph()
413 void EraseNodesFromGraph(const std::set<string>& nodes_to_delete, in EraseNodesFromGraph() argument
416 nodes_idx_to_delete.reserve(nodes_to_delete.size()); in EraseNodesFromGraph()
[all …]
Dutils.h301 void EraseNodesFromGraph(const std::set<int>& nodes_to_delete, GraphDef* graph);
303 void EraseNodesFromGraph(std::vector<int>&& nodes_to_delete, GraphDef* graph);
305 void EraseNodesFromGraph(const std::set<string>& nodes_to_delete,
Dmutable_graph_view.h249 Status DeleteNodes(const absl::flat_hash_set<string>& nodes_to_delete);
317 const absl::flat_hash_set<string>& nodes_to_delete);
Dmutable_graph_view.cc1488 const absl::flat_hash_set<string>& nodes_to_delete) { in CheckNodesCanBeDeleted() argument
1491 for (const string& node_name_to_delete : nodes_to_delete) { in CheckNodesCanBeDeleted()
1507 if (!nodes_to_delete.contains(fanout.node->name())) { in CheckNodesCanBeDeleted()
1537 std::vector<string> input_node_names(nodes_to_delete.begin(), in CheckNodesCanBeDeleted()
1538 nodes_to_delete.end()); in CheckNodesCanBeDeleted()
1551 const absl::flat_hash_set<string>& nodes_to_delete) { in DeleteNodes() argument
1552 TF_RETURN_IF_ERROR(CheckNodesCanBeDeleted(nodes_to_delete)); in DeleteNodes()
1555 for (const string& node_name_to_delete : nodes_to_delete) { in DeleteNodes()
1562 for (const string& node_name_to_delete : nodes_to_delete) { in DeleteNodes()
1574 if (nodes_to_delete.contains(graph()->node(pos).name())) { in DeleteNodes()