Home
last modified time | relevance | path

Searched refs:LinkTag (Results 1 – 4 of 4) sorted by relevance

/external/tensorflow/tensorflow/core/grappler/graph_analyzer/
Dsig_node.h82 struct LinkTag { struct
84 size_t operator()(const LinkTag& tag) const noexcept { in operator() argument
92 LinkTag(GenNode::Port a_local, GenNode::Port a_remote) in LinkTag() argument
98 LinkTag() : local(false, 99), remote(false, 99) {} in LinkTag() argument
105 bool operator==(const LinkTag& other) const { argument
108 bool operator<(const LinkTag& other) const {
118 LinkTag tag;
163 std::map<LinkTag, Link>* link_map);
166 void CopyLinksPass2(std::map<LinkTag, Link>* link_map);
Dsig_node.cc36 std::map<LinkTag, Link> link_map; in CopyLinks()
42 std::map<LinkTag, Link>* link_map) { in CopyLinksPass1() argument
43 LinkTag::Hasher link_hasher; in CopyLinksPass1()
53 LinkTag tag(entry.first, target.port); in CopyLinksPass1()
67 void SigNode::CopyLinksPass2(std::map<LinkTag, Link>* link_map) { in CopyLinksPass2() argument
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()
77 std::map<SigNode::LinkTag, SigNode::Link>* link_map, SigNode* node) { in CopyLinksPass2() argument
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()
161 std::map<SigNode::LinkTag, SigNode::Link> link_map; in TEST_F()
[all …]
Dtest_tools.cc108 std::map<SigNode::LinkTag, size_t> tags; in DumpLinkHashMap()