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

Function CompareLiterals

tensorflow/compiler/xrt/tests/raw_api_test.cc:159–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159bool CompareLiterals(const xla::Literal& a, const xla::Literal& b) {
160 bool equal = a == b;
161 if (!equal) {
162 LOG(INFO) << "Literals don't match:\n"
163 << a.ToProto().DebugString() << "\n!=\n"
164 << b.ToProto().DebugString();
165 }
166 return equal;
167}
168
169xla::XlaComputation OnePlusTwo() {
170 xla::XlaBuilder builder("OnePlusTwo");

Callers 2

TESTFunction · 0.85
RunMethod · 0.85

Calls 2

DebugStringMethod · 0.45
ToProtoMethod · 0.45

Tested by

no test coverage detected