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

Method operator==

tensorflow/compiler/jit/xla_compilation_cache.cc:88–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88bool XlaCompilationCache::Signature::operator==(const Signature& other) const {
89 if (name != other.name) return false;
90 if (arg_shapes != other.arg_shapes) return false;
91
92 if (arg_values.size() != other.arg_values.size()) return false;
93 for (int i = 0; i < arg_values.size(); ++i) {
94 if (arg_values[i].dtype() != other.arg_values[i].dtype() ||
95 arg_values[i].shape() != other.arg_values[i].shape() ||
96 arg_values[i].tensor_data() != other.arg_values[i].tensor_data()) {
97 return false;
98 }
99 }
100 return true;
101}
102
103uint64 XlaCompilationCache::Signature::Hash::operator()(
104 const XlaCompilationCache::Signature& signature) const {

Callers

nothing calls this directly

Calls 4

tensor_dataMethod · 0.80
sizeMethod · 0.45
dtypeMethod · 0.45
shapeMethod · 0.45

Tested by

no test coverage detected