MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / Identity

Class Identity

tensorflow/core/grappler/graph_analyzer/subgraph.h:36–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 public:
35 // Identity of a single subgraph as a set of nodes.
36 class Identity : public gtl::FlatSet<const GenNode*> {
37 public:
38 using InitializerList = std::initializer_list<GenNode*>;
39
40 Identity() = default;
41 Identity(InitializerList init);
42 bool operator<(const Identity& other) const;
43 bool operator==(const Identity& other) const;
44
45 // Compute the hash.
46 size_t Hash() const;
47 };
48
49 explicit Subgraph(Identity id) : id_(std::move(id)), hash_(id_.Hash()) {}
50

Callers 15

TEST_FFunction · 0.70
TEST_FFunction · 0.50
TEST_FFunction · 0.50
CreateSimpleConv2DGraphFunction · 0.50
CreateSimpleMaxPoolGradFunction · 0.50
CreateSimpleBiasAddGradFunction · 0.50
CreateSimpleAddNFunction · 0.50

Calls

no outgoing calls

Tested by 15

TEST_FFunction · 0.56
TEST_FFunction · 0.40
TEST_FFunction · 0.40
CreateSimpleConv2DGraphFunction · 0.40
CreateSimpleMaxPoolGradFunction · 0.40
CreateSimpleBiasAddGradFunction · 0.40
CreateSimpleAddNFunction · 0.40