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

Class CustomCmpKey

tensorflow/core/lib/gtl/flatmap_test.cc:613–618  ·  view source on GitHub ↗

Type to use to ensure that custom equality operator is used that ignores extra value.

Source from the content-addressed store, hash-verified

611// Type to use to ensure that custom equality operator is used
612// that ignores extra value.
613struct CustomCmpKey {
614 int64 a;
615 int64 b;
616 CustomCmpKey(int64 v1, int64 v2) : a(v1), b(v2) {}
617 bool operator==(const CustomCmpKey& x) const { return a == x.a && b == x.b; }
618};
619struct HashA {
620 size_t operator()(CustomCmpKey x) const { return x.a; }
621};

Callers 1

TESTFunction · 0.70

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.56