Home
last modified time | relevance | path

Searched refs:node_map_ (Results 1 – 16 of 16) sorted by relevance

/external/tensorflow/tensorflow/core/grappler/optimizers/
Dconstant_folding.cc266 const auto& tmp = node_map_->GetOutputs(node->name()); in ForwardInputs()
274 const NodeDef* input_node = node_map_->GetNode(NodeName(input)); in ForwardInputs()
301 node_map_->AddOutput(NodeName(input), consumer->name()); in ForwardInputs()
362 return node_map_->NodeExists(OptimizedNodeName(node, suffix)); in OptimizedNodeExists()
382 const NodeDef* node = node_map_->GetNode(node_name_or_input); in GetTensorFromConstNode()
448 AddControlDependency(node->input(0), graph_, node_map_.get()); in MaterializeShapes()
449 node_map_->UpdateInput(node->name(), node->input(0), ctrl_dep); in MaterializeShapes()
456 const NodeDef* array = CHECK_NOTNULL(node_map_->GetNode(node->input(0))); in MaterializeShapes()
463 CHECK_NOTNULL(node_map_->GetNode(array->input(0))); in MaterializeShapes()
487 graph_, node_map_.get())); in MaterializeShapes()
[all …]
Ddependency_optimizer.cc71 const NodeDef* input = node_map_->GetNode(NodeName(node.input(0))); in SafeToRemoveIdentity()
79 for (const auto& consumer : node_map_->GetOutputs(node.name())) { in SafeToRemoveIdentity()
95 if (HasRegularOutputs(node, *node_map_)) { in SafeToConvertToNoOp()
258 const auto output_nodes = node_map_->GetOutputs(node_name); in OptimizeNode()
277 node_map_->RemoveOutput(node_name, fanout->name()); in OptimizeNode()
281 if (node_map_->GetOutputs(node_name).empty() && fetch_nodes_known_ && in OptimizeNode()
311 old_input, optimized_graph_, node_map_.get()); in OptimizeNode()
314 node_map_->UpdateInput(node_name, old_input, ctrl_input); in OptimizeNode()
315 const NodeDef* old_input_node = node_map_->GetNode(old_input); in OptimizeNode()
379 NodeDef* input_node = node_map_->GetNode(node->input(i)); in OptimizeNode()
[all …]
Dloop_optimizer.cc76 std::unique_ptr<NodeMap> node_map_; member in tensorflow::grappler::__anon3d4744950111::LoopInvariantNodeMotionOptimizer
88 auto consumers = node_map_->GetOutputs(node->name()); in HandleInvariantEnter()
103 node_map_->AddOutput(NodeName(enter_input), consumer->name()); in HandleInvariantEnter()
104 node_map_->RemoveOutput(node->name(), consumer->name()); in HandleInvariantEnter()
109 node_map_->AddOutput(NodeName(control_input), consumer->name()); in HandleInvariantEnter()
125 node_map_->RemoveInputs(node->name()); in HandleConst()
133 const_node = node_map_->GetNode(const_node_name); in HandleConst()
140 node_map_->AddNode(const_node->name(), const_node); in HandleConst()
142 auto consumers = node_map_->GetOutputs(node->name()); in HandleConst()
152 node_map_->AddOutput(const_node->name(), consumer->name()); in HandleConst()
[all …]
Dlayout_optimizer.cc413 node_map_(node_map) {} in GraphProcessor()
419 node_map_->AddNode(name, node); in AddNodePermConst()
445 node_map_->AddNode(name, node); in AddNodeConstScalar()
474 NodeMap* node_map_; member in tensorflow::grappler::__anon5a8ea6d90111::GraphProcessor
567 auto outputs = node_map_->GetOutputs(node_->name()); in HasOutputs()
625 auto input_node = node_map_->GetNode(node_->input(input_index)); in UpdateAttrValueOfInput()
636 node_map_->AddNode(node_name, added_node); in UpdateAttrValueOfInput()
637 node_map_->AddOutput(node_name, node_->name()); in UpdateAttrValueOfInput()
658 auto input_node = node_map_->GetNode(node_->input(pos)); in AddLayoutTransposeToInputs()
667 node_map_->UpdateOutput(NodeName(node_->input(pos)), node_->name(), in AddLayoutTransposeToInputs()
[all …]
Dscoped_allocator_optimizer.h76 NodeMap* node_map() { return node_map_.get(); } in node_map()
120 std::unique_ptr<NodeMap> node_map_; variable
Ddependency_optimizer.h80 std::unique_ptr<NodeMap> node_map_; variable
Darithmetic_optimizer.h136 std::unique_ptr<NodeMap> node_map_; variable
Dconstant_folding.h335 std::unique_ptr<NodeMap> node_map_; variable
Darithmetic_optimizer.cc3672 graph_properties_.get(), node_map_.get(), in SimplifyArithmeticOps()
3755 NodeDef* simplified_node = node_map_->GetNode(simplified_tensor); in SimplifyArithmeticOps()
3764 node_map_->GetOutputsOrderedByNodeName(node->name()); in SimplifyArithmeticOps()
3778 node_map_->UpdateInput(consumer->name(), node->name(), in SimplifyArithmeticOps()
3796 node_map_.reset(new NodeMap(optimized_graph_)); in Optimize()
Dscoped_allocator_optimizer.cc925 node_map_ = absl::make_unique<NodeMap>(optimized_graph); in Optimize()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/channel/
Dchannelz_registry.cc61 node_map_[node->uuid_] = node; in InternalRegister()
68 node_map_.erase(uuid); in InternalUnregister()
76 auto it = node_map_.find(uuid); in InternalGet()
77 if (it == node_map_.end()) return nullptr; in InternalGet()
90 for (auto it = node_map_.lower_bound(start_channel_id); in InternalGetTopChannels()
91 it != node_map_.end(); ++it) { in InternalGetTopChannels()
129 for (auto it = node_map_.lower_bound(start_server_id); in InternalGetServers()
130 it != node_map_.end(); ++it) { in InternalGetServers()
167 for (auto& p : node_map_) { in InternalLogAllEntities()
Dchannelz_registry.h92 std::map<intptr_t, BaseNode*> node_map_; variable
/external/tensorflow/tensorflow/core/grappler/costs/
Dvirtual_scheduler.cc169 node_map_ = node_map; in Init()
235 return FirstReadyCmp(node_map_, a, b); in Greater()
247 return FirstReadyCmp(node_map_, a, b); in Greater()
273 node_map_ = node_map; in Init()
286 const auto& device = node_map_->at(node).device_name; in AddNode()
303 candidates.emplace_back(op, node_map_->at(op).time_ready); in GetCurrNode()
308 candidates.emplace_back(send, node_map_->at(send).time_ready); in GetCurrNode()
312 candidates.emplace_back(recv, node_map_->at(recv).time_ready); in GetCurrNode()
351 const auto device = node_map_->at(node).device_name; in RemoveCurrNode()
406 node_map_.clear(); in Init()
[all …]
Dvirtual_scheduler.h240 const std::unordered_map<const NodeDef*, NodeState>* node_map_; variable
308 const std::unordered_map<const NodeDef*, NodeState>* node_map_; variable
369 return &node_map_; in GetNodeStates()
386 return node_map_; in GetNodeMap()
419 std::unordered_map<const NodeDef*, NodeState> node_map_; variable
/external/tensorflow/tensorflow/tools/graph_transforms/
Dtransform_utils.h179 std::map<string, const NodeDef*> node_map_; variable
Dtransform_utils.cc288 MapNamesToNodes(graph_def_, &node_map_); in GraphMatcher()
351 const NodeDef& input_node = *(node_map_[input_node_name]); in DoesOpTypeMatch()