Home
last modified time | relevance | path

Searched refs:GenNode (Results 1 – 14 of 14) sorted by relevance

/external/tensorflow/tensorflow/core/grappler/graph_analyzer/
Dgen_node_test.cc35 GenNode::Port p(true, 100); in TEST()
39 GenNode::Port p2 = GenNode::Port::Decode(p.Encoded()); in TEST()
45 GenNode::Port p(false, 0); in TEST()
49 GenNode::Port p2 = GenNode::Port::Decode(p.Encoded()); in TEST()
55 GenNode::Port p(true, -100); in TEST()
59 GenNode::Port p2 = GenNode::Port::Decode(p.Encoded()); in TEST()
65 GenNode::Port p(false, -1); in TEST()
69 GenNode::Port p2 = GenNode::Port::Decode(p.Encoded()); in TEST()
79 map["node1"] = absl::make_unique<GenNode>(&node1); in TEST()
91 map["node1"] = absl::make_unique<GenNode>(&node1); in TEST()
[all …]
Dsubgraph.h36 class Identity : public gtl::FlatSet<const GenNode*> {
38 using InitializerList = std::initializer_list<GenNode*>;
52 Subgraph(const Identity& parent_id, GenNode* add_node);
113 const GenNode::LinkTarget& GetNeighbor() const { in GetNeighbor()
119 const GenNode* GetNode() const { return *id_it_; } in GetNode()
123 GenNode::Port GetPort() const { return link_map_it_->first; } in GetPort()
167 GenNode::LinkMap::const_iterator link_map_it_;
183 Subgraph* ExtendParent(const Subgraph::Identity& parent_id, GenNode* node);
Dgen_node.cc28 GenNode::GenNode(const NodeDef* node) : node_(node), op_(nullptr) {} in GenNode() function in tensorflow::grappler::graph_analyzer::GenNode
30 Status GenNode::BuildGraphInMap(const GraphDef& source, GenNodeMap* map) { in BuildGraphInMap()
38 (*map)[name] = absl::make_unique<GenNode>(&n); in BuildGraphInMap()
50 Status GenNode::ParseInputs(const GenNodeMap* map) { in ParseInputs()
102 GenNode* other_node = other_it->second.get(); in ParseInputs()
125 bool GenNode::IsMultiInput(Port port) const { in IsMultiInput()
136 GenNode::Port::operator string() const { in operator string()
Dgen_node.h34 class GenNode; variable
37 using GenNodeMap = std::unordered_map<string, std::unique_ptr<GenNode>>;
46 class GenNode {
50 explicit GenNode(const NodeDef* node);
122 GenNode* node; // Node where this link points.
125 LinkTarget(GenNode* a_node, Port a_port) : node(a_node), port(a_port) {} in LinkTarget()
Dsig_node.h71 std::unordered_map<const GenNode* /*full_graph*/, SigNode* /*subgraph*/>;
72 void CopyLinks(const GenNode& from, const TranslationMap& map);
89 GenNode::Port::Hasher port_hasher;
92 LinkTag(GenNode::Port a_local, GenNode::Port a_remote) in LinkTag()
101 GenNode::Port local;
103 GenNode::Port remote;
162 void CopyLinksPass1(const GenNode& from, const TranslationMap& map,
Dsubgraph_test.cc44 ASSERT_THAT(GenNode::BuildGraphInMap(graph, &map), Eq(Status::OK())); in TEST()
67 auto gn1 = absl::make_unique<GenNode>(&node1); in TEST()
91 ASSERT_THAT(GenNode::BuildGraphInMap(graph, &map), Eq(Status::OK())); in TEST()
154 ASSERT_THAT(GenNode::BuildGraphInMap(graph, &map), Eq(Status::OK())); in TEST()
167 GenNode::Port last_port(false, -1); in TEST()
171 GenNode::Port new_port = sit.GetPort(); in TEST()
204 ASSERT_THAT(GenNode::BuildGraphInMap(graph, &map), Eq(Status::OK())); in TEST()
211 const GenNode* last_node = nullptr; in TEST()
214 const GenNode* new_node = sit.GetNode(); in TEST()
255 ASSERT_THAT(GenNode::BuildGraphInMap(graph, &map), Eq(Status::OK())); in TEST()
[all …]
Dgraph_analyzer.cc61 return GenNode::BuildGraphInMap(graph_, &nodes_); in BuildMap()
99 const GenNode* last_all_or_none_node = nullptr; in ExtendSubgraph()
101 const GenNode* node = sit.GetNode(); in ExtendSubgraph()
102 GenNode::Port port = sit.GetPort(); in ExtendSubgraph()
103 const GenNode::LinkTarget& neighbor = sit.GetNeighbor(); in ExtendSubgraph()
137 const GenNode* node) { in ExtendSubgraphAllOrNone()
166 const GenNode* node, in ExtendSubgraphPortAllOrNone()
167 GenNode::Port port) { in ExtendSubgraphPortAllOrNone()
265 GenNode* peer = sit.GetNeighbor().node; in HasInvalidMultiInputs()
Dsig_node_test.cc40 SigNode::LinkTag a(GenNode::Port(false, 1), GenNode::Port(false, 2)); in TEST()
41 SigNode::LinkTag b(GenNode::Port(false, 1), GenNode::Port(false, 2)); in TEST()
42 SigNode::LinkTag c(GenNode::Port(false, 2), GenNode::Port(false, 1)); in TEST()
43 SigNode::LinkTag d(GenNode::Port(false, 1), GenNode::Port(false, 3)); in TEST()
44 SigNode::LinkTag e(GenNode::Port(false, 2), GenNode::Port(false, 2)); in TEST()
67 CHECK(GenNode::BuildGraphInMap(graph, &gen_map_).ok()); in BuildSigMap()
147 link1.tag = SigNode::LinkTag(GenNode::Port(true, 0), GenNode::Port(false, 0)); in TEST_F()
152 link2.tag = SigNode::LinkTag(GenNode::Port(true, 1), GenNode::Port(false, 0)); in TEST_F()
157 link3.tag = SigNode::LinkTag(GenNode::Port(true, 2), GenNode::Port(false, 0)); in TEST_F()
482 ASSERT_THAT(GenNode::BuildGraphInMap(graph1, &gen_map1), Eq(Status::OK())); in TEST_F()
[all …]
Dgraph_analyzer_test.cc48 void ExtendSubgraphPortAllOrNone(Subgraph* parent, GenNode* node, in ExtendSubgraphPortAllOrNone()
49 GenNode::Port port) { in ExtendSubgraphPortAllOrNone()
53 void ExtendSubgraphAllOrNone(Subgraph* parent, GenNode* node) { in ExtendSubgraphAllOrNone()
69 GenNode* GetNode(const string& name) { return gran_->nodes_.at(name).get(); } in GetNode()
157 GenNode::Port(true, 0)); in TEST_F()
180 GenNode::Port(true, 0)); in TEST_F()
202 GenNode::Port(true, 0)); in TEST_F()
224 GenNode::Port(true, 0)); in TEST_F()
243 GenNode::Port(true, 0)); in TEST_F()
261 GenNode::Port(true, 0)); in TEST_F()
[all …]
Dgraph_analyzer.h90 void ExtendSubgraphAllOrNone(Subgraph* parent, const GenNode* node);
92 void ExtendSubgraphPortAllOrNone(Subgraph* parent, const GenNode* node,
93 GenNode::Port port);
Dsubgraph.cc71 std::hash<const GenNode*> hasher; in Hash()
112 Subgraph::Subgraph(const Identity& parent_id, GenNode* add_node) in Subgraph()
215 GenNode* node) { in ExtendParent()
Dtest_tools.h107 std::vector<string> DumpLinkMap(const GenNode::LinkMap& link_map);
Dsig_node.cc32 void SigNode::CopyLinks(const GenNode& from, const TranslationMap& map) { in CopyLinks()
41 void SigNode::CopyLinksPass1(const GenNode& from, const TranslationMap& map, in CopyLinksPass1()
Dtest_tools.cc81 std::vector<string> DumpLinkMap(const GenNode::LinkMap& link_map) { in DumpLinkMap()