Home
last modified time | relevance | path

Searched refs:NodeMap (Results 1 – 25 of 30) sorted by relevance

12

/external/tensorflow/tensorflow/core/grappler/
Dutils.cc33 NodeMap::NodeMap(GraphDef* graph) { in NodeMap() function in tensorflow::grappler::NodeMap
49 void NodeMap::RemoveNode(const string& name) { in RemoveNode()
54 NodeDef* NodeMap::GetNode(const string& name) const { in GetNode()
63 bool NodeMap::NodeExists(const string& name) const { in NodeExists()
68 const std::set<NodeDef*>& NodeMap::GetOutputs(const string& node_name) const { in GetOutputs()
76 void NodeMap::AddNode(const string& node_name, NodeDef* node) { in AddNode()
82 void NodeMap::AddOutput(const string& node_name, const string& output_name) { in AddOutput()
89 void NodeMap::RemoveOutput(const string& node_name, const string& output_name) { in RemoveOutput()
93 void NodeMap::UpdateInput(const string& node_name, const string& old_input_name, in UpdateInput()
99 void NodeMap::RemoveInputs(const string& node_name) { in RemoveInputs()
[all …]
Dutils.h35 class NodeMap {
39 explicit NodeMap(GraphDef* graph);
144 int NumNonControlOutputs(const NodeDef& node, const NodeMap& node_map);
162 NodeDef* GetTailOfChain(const NodeDef& source, const NodeMap& node_map,
Dutils_test.cc221 NodeMap node_map(&graph); in TEST_F()
/external/tensorflow/tensorflow/core/grappler/optimizers/
Dlayout_optimizer_test.cc174 NodeMap node_map(&output); in TEST_F()
197 NodeMap node_map(&output); in TEST_F()
218 NodeMap node_map(&output); in TEST_F()
231 NodeMap node_map(&output); in TEST_F()
244 NodeMap node_map(&output); in TEST_F()
257 NodeMap node_map(&output); in TEST_F()
270 NodeMap node_map(&output); in TEST_F()
285 NodeMap node_map(&output); in TEST_F()
314 NodeMap node_map_original(&item.graph); in TEST_F()
321 NodeMap node_map_output(&output); in TEST_F()
[all …]
Dmemory_optimizer_test.cc48 NodeMap pre_transform_node_map(&item.graph); in TEST_F()
57 NodeMap post_transform_node_map(&output); in TEST_F()
88 NodeMap pre_transform_node_map(&item.graph); in TEST_F()
111 NodeMap pre_transform_node_map(&item.graph); in TEST_F()
123 NodeMap post_transform_node_map(&output); in TEST_F()
151 NodeMap pre_transform_node_map(&item.graph); in TEST_F()
163 NodeMap post_transform_node_map(&first_pass_output); in TEST_F()
Dconstant_folding.h38 NodeMap* node_map);
106 std::unique_ptr<NodeMap> node_map_;
Darithmetic_optimizer.cc158 const NodeMap* node_map) { in IsInnerMatrixTransposeNode()
176 GraphDef* graph, NodeMap* node_map) { in MaybeAddControlInput()
194 NodeMap* node_map) { in CopyControlInputs()
252 PartialTensorShape GetInputShape(const string& input, const NodeMap& node_map) { in GetInputShape()
260 const NodeMap& node_map) { in ShapesEqual()
323 const NodeDef& node, const NodeMap& node_map, in GetTailOfValuePreservingChain()
535 node_map_.reset(new NodeMap(optimized_graph_)); in DedupComputations()
1112 node_map_.reset(new NodeMap(optimized_graph_)); in Optimize()
Ddependency_optimizer.h69 std::unique_ptr<NodeMap> node_map_;
Dmemory_optimizer.cc65 const NodeMap& node_map, const GraphDef* graph, in FindCandidateRecomputeNodes()
102 void connected_subgraph(const NodeMap& node_map, bool collect_inputs, in connected_subgraph()
145 const GraphDef* graph, const NodeMap& node_map, in GetOpGroupsToRecompute()
207 const std::unordered_set<NodeDef*>& target_nodes, const NodeMap& node_map, in GetMaxDownstreamComponents()
275 const std::unordered_set<NodeDef*>& target_nodes, const NodeMap& node_map, in AddRecomputeControlDependencyNodes()
369 const std::unordered_set<NodeDef*>& target_nodes, const NodeMap& node_map, in RecomputeSubgraph()
432 NodeMap node_map(graph); in RecomputationRewritingPass()
Darithmetic_optimizer.h103 std::unique_ptr<NodeMap> node_map_;
Ddependency_optimizer.cc39 bool RemoveInput(NodeDef* node, const string& input, NodeMap* node_map) { in RemoveInput()
421 node_map_.reset(new NodeMap(optimized_graph_)); in OptimizeDependencies()
562 node_map_.reset(new NodeMap(optimized_graph_)); in Optimize()
Darithmetic_optimizer_test.cc866 NodeMap node_map(&output); in TEST_F()
926 NodeMap node_map(&output); in TEST_F()
968 NodeMap node_map(&output); in TEST_F()
998 NodeMap node_map(&output); in TEST_F()
1045 NodeMap node_map(&output); in TEST_F()
1094 NodeMap node_map(&output); in TEST_F()
Dlayout_optimizer.cc375 GraphDef* graph, NodeMap* node_map) in GraphProcessor()
441 NodeMap* node_map_;
445 OptimizeContext(GraphDef* graph, NodeDef* node, NodeMap* node_map, in OptimizeContext()
459 NodeMap* node_map;
1882 NodeMap* node_map) in DataLayoutOptimizer()
2111 NodeMap node_map(output); in Tune()
Dconstant_folding.cc135 GraphDef* graph, NodeMap* node_map) { in MaybeAddControlInput()
154 GraphDef* graph, NodeMap* node_map) { in MaybeRemoveControlInput()
181 NodeMap* node_map) { in AddControlDependency()
1678 node_map_.reset(new NodeMap(graph_)); in RunOptimizationPass()
1708 node_map_.reset(new NodeMap(output)); in RunOptimizationPass()
/external/tensorflow/tensorflow/core/grappler/utils/
Dframe.cc30 NodeMap node_map(const_cast<GraphDef*>(&graph)); in IdentifyFrames()
34 Status IdentifyFramesWithNodeMap(const GraphDef& graph, const NodeMap& node_map, in IdentifyFramesWithNodeMap()
Dframe.h37 Status IdentifyFramesWithNodeMap(const GraphDef& graph, const NodeMap& node_map,
/external/tensorflow/tensorflow/compiler/tf2xla/
Dtf2xla.cc58 typedef std::unordered_map<string, Node*> NodeMap; typedef
64 Status AddArgNodes(Graph* graph, const NodeMap& node_map, in AddArgNodes()
120 Status AddRetvalNodes(Graph* graph, const NodeMap& node_map, in AddRetvalNodes()
156 NodeMap node_map; in RewriteAndPruneGraph()
/external/clang/include/clang/ASTMatchers/
DASTMatchersInternal.h127 NodeMap[ID] = DynNode; in addNode()
136 IDToNodeMap::const_iterator It = NodeMap.find(ID); in getNodeAs()
137 if (It == NodeMap.end()) { in getNodeAs()
144 IDToNodeMap::const_iterator It = NodeMap.find(ID); in getNode()
145 if (It == NodeMap.end()) { in getNode()
153 return NodeMap < Other.NodeMap;
164 return NodeMap; in getMap()
170 for (const auto &IDAndNode : NodeMap) { in isComparable()
178 IDToNodeMap NodeMap;
/external/libmojo/mojo/edk/system/
Dnode_controller.h142 using NodeMap = std::unordered_map<ports::NodeName, variable
277 NodeMap peers_;
348 NodeMap pending_children_;
/external/swiftshader/third_party/subzero/src/
DIceConverter.cpp104 NodeMap.clear(); in convertFunction()
188 if (NodeMap.find(BB) == NodeMap.end()) { in mapBasicBlockToNode()
189 NodeMap[BB] = Func->makeNode(); in mapBasicBlockToNode()
191 NodeMap[BB]->setName(BB->getName()); in mapBasicBlockToNode()
193 return NodeMap[BB]; in mapBasicBlockToNode()
649 std::map<const BasicBlock *, Ice::CfgNode *> NodeMap; member in __anon6ae407240111::LLVM2ICEFunctionConverter
DIceOperand.cpp108 assert(NodeMap.find(Start) == NodeMap.end()); in addSegment()
109 NodeMap[Start] = Node; in addSegment()
DIceOperand.h665 auto Iter = NodeMap.find(Begin); in getNodeForSegment()
666 assert(Iter != NodeMap.end()); in getNodeForSegment()
672 CfgUnorderedMap<InstNumberT, CfgNode *> NodeMap; variable
/external/llvm/include/llvm/Analysis/
DLazyCallGraph.h776 Node *lookup(const Function &F) const { return NodeMap.lookup(&F); } in lookup()
798 Node *&N = NodeMap[&F]; in get()
841 DenseMap<const Function *, Node *> NodeMap; variable
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.h86 DenseMap<const Value*, SDValue> NodeMap; variable
395 SDValue &N = NodeMap[V]; in setValue()
/external/llvm/lib/Analysis/
DLazyCallGraph.cpp154 : BPA(std::move(G.BPA)), NodeMap(std::move(G.NodeMap)), in LazyCallGraph()
166 NodeMap = std::move(G.NodeMap); in operator =()

12