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

Method VerifyOrAddFailure

tensorflow/compiler/xla/tests/verified_hlo_module.cc:36–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36void VerifiedHloModule::VerifyOrAddFailure(absl::string_view message) {
37 Status status = Verify();
38 if (!status.ok()) {
39 ADD_FAILURE() << "HloVerifier failed on module " << name()
40 << (message.empty() ? "" : absl::StrCat(" (", message, ")"))
41 << ": " << status;
42 LOG(ERROR) << "Contents of bad module:";
43 XLA_LOG_LINES(tensorflow::ERROR, ToString());
44 }
45}
46
47Status VerifiedHloModule::Verify() {
48 if (computation_count() == 0) {

Callers

nothing calls this directly

Calls 6

nameFunction · 0.85
VerifyFunction · 0.50
StrCatFunction · 0.50
ToStringFunction · 0.50
okMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected