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

Function operator==

tensorflow/core/framework/tensor_test.cc:39–43  ·  view source on GitHub ↗

To make TestCopies do the right thing.

Source from the content-addressed store, hash-verified

37
38// To make TestCopies do the right thing.
39bool operator==(const ResourceHandle& a, const ResourceHandle& b) {
40 return a.device() == b.device() && a.container() == b.container() &&
41 a.name() == b.name() && a.hash_code() == b.hash_code() &&
42 a.maybe_type_name() == b.maybe_type_name();
43}
44
45bool operator==(const Variant& a, const Variant& b) {
46 if (a.is_empty()) {

Callers

nothing calls this directly

Calls 13

get_metadataMethod · 0.80
AsProtoTensorContentMethod · 0.80
tensorsMethod · 0.80
nameMethod · 0.65
deviceMethod · 0.45
containerMethod · 0.45
hash_codeMethod · 0.45
is_emptyMethod · 0.45
TypeIdMethod · 0.45
TypeNameMethod · 0.45
EncodeMethod · 0.45
tensors_sizeMethod · 0.45

Tested by

no test coverage detected