Home
last modified time | relevance | path

Searched refs:nodes_to_preserve (Results 1 – 12 of 12) sorted by relevance

/external/tensorflow/tensorflow/core/grappler/optimizers/data/
Dshuffle_and_repeat_fusion.cc194 const auto nodes_to_preserve = item.NodesToPreserve(); in OptimizeAndCollectStats() local
195 if (nodes_to_preserve.find(shuffle_node.name()) == in OptimizeAndCollectStats()
196 nodes_to_preserve.end() && in OptimizeAndCollectStats()
197 nodes_to_preserve.find(repeat_node.name()) == nodes_to_preserve.end()) { in OptimizeAndCollectStats()
/external/tensorflow/tensorflow/core/grappler/optimizers/
Dgraph_optimizer_stage.h49 GraphOptimizerContext(const std::unordered_set<string>* nodes_to_preserve, in GraphOptimizerContext()
54 : nodes_to_preserve(nodes_to_preserve), in GraphOptimizerContext()
61 const std::unordered_set<string>* nodes_to_preserve; member
Dmodel_pruner.cc423 const std::unordered_set<string> nodes_to_preserve = item.NodesToPreserve(); in Optimize() local
430 if (!nodes_to_preserve.empty()) { in Optimize()
434 std::vector<string> terminal_nodes(nodes_to_preserve.begin(), in Optimize()
435 nodes_to_preserve.end()); in Optimize()
473 if (nodes_to_preserve.find(node->name()) != nodes_to_preserve.end()) { in Optimize()
498 if (nodes_to_delete.empty() && nodes_to_preserve.empty()) { in Optimize()
Dloop_optimizer.cc457 const std::unordered_set<string>& nodes_to_preserve, int stack_node_idx) { in GetStackPushNodesToConvert() argument
493 if (nodes_to_preserve.find(stack_node->name()) == in GetStackPushNodesToConvert()
494 nodes_to_preserve.end()) { in GetStackPushNodesToConvert()
506 nodes_to_preserve.find(fanout_node.name()) != in GetStackPushNodesToConvert()
507 nodes_to_preserve.end())) { in GetStackPushNodesToConvert()
518 Status RemoveStackOps(const std::unordered_set<string>& nodes_to_preserve, in RemoveStackOps() argument
527 graph_view, nodes_to_preserve, node_idx)) { in RemoveStackOps()
762 const std::unordered_set<string>& nodes_to_preserve, in RemoveDeadBranches() argument
779 if (nodes_to_preserve.find(node.name()) != nodes_to_preserve.end()) { in RemoveDeadBranches()
811 if (nodes_to_preserve.find(dead.node->name()) != in RemoveDeadBranches()
[all …]
Dloop_optimizer.h66 Status RemoveDeadBranches(const std::unordered_set<string>& nodes_to_preserve,
Dlayout_optimizer.cc407 const std::unordered_set<string>& nodes_to_preserve, in GraphProcessor() argument
411 nodes_to_preserve_(nodes_to_preserve), in GraphProcessor()
481 const std::unordered_set<string>& nodes_to_preserve, in OptimizeContext()
489 nodes_to_preserve(nodes_to_preserve), in OptimizeContext()
497 const std::unordered_set<string>& nodes_to_preserve; member
506 opt_cxt.nodes_to_preserve, opt_cxt.graph, in NodeProcessor()
2032 const std::unordered_set<string>& nodes_to_preserve, GraphDef* graph, in DataLayoutOptimizer() argument
2034 : GraphProcessor(graph_properties, virtual_placer, nodes_to_preserve, in DataLayoutOptimizer()
Darithmetic_optimizer.cc138 const std::unordered_set<string>& nodes_to_preserve) { in GetTailOfValuePreservingChain() argument
140 return nodes_to_preserve.find(node.name()) == nodes_to_preserve.end() && in GetTailOfValuePreservingChain()
149 const std::unordered_set<string>& nodes_to_preserve) { in GetTailOfIdempotentChain() argument
151 return nodes_to_preserve.find(node.name()) == nodes_to_preserve.end() && in GetTailOfIdempotentChain()
254 return ctx().nodes_to_preserve->find(node.name()) != in IsInPreserveSet()
255 ctx().nodes_to_preserve->end(); in IsInPreserveSet()
441 return ctx().nodes_to_preserve->find(node.name()) != in IsInPreserveSet()
442 ctx().nodes_to_preserve->end(); in IsInPreserveSet()
1127 *ctx().nodes_to_preserve); in TrySimplify()
1244 *ctx().nodes_to_preserve); in TrySimplify()
[all …]
Dgeneric_layout_optimizer_transposer.cc238 const auto& nodes_to_preserve = item.NodesToPreserve(); in InitializeTransposeContext() local
239 context->nodes_to_preserve = absl::flat_hash_set<string>( in InitializeTransposeContext()
240 nodes_to_preserve.begin(), nodes_to_preserve.end()); in InitializeTransposeContext()
284 !context.nodes_to_preserve.contains(node_def->name()) && in ShouldProcess()
647 return !context.nodes_to_preserve.contains(node.GetName()) && in CanProcessNode()
Dremapper.cc80 : nodes_to_preserve(item->NodesToPreserve()), in RemapperContext()
85 std::unordered_set<string> nodes_to_preserve; member
211 return ctx.nodes_to_preserve.count(node->name()) > 0; in IsInPreserveSet()
Dgeneric_layout_optimizer_transposer.h69 absl::flat_hash_set<string> nodes_to_preserve; member
Dauto_mixed_precision.cc929 const std::unordered_set<string>& nodes_to_preserve, in AutoMixedPrecisionImpl() argument
933 nodes_to_preserve_(nodes_to_preserve), in AutoMixedPrecisionImpl()
/external/tensorflow/tensorflow/compiler/tf2tensorrt/convert/
Dtrt_optimization_pass.cc214 std::vector<string> nodes_to_preserve; in Optimize() local
228 nodes_to_preserve.push_back(s); in Optimize()
233 cp.output_names = &nodes_to_preserve; in Optimize()