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

Function Check

tensorflow/compiler/xla/tools/driver.cc:69–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69void Check(bool cond, const std::string& msg = "Precondition failed") {
70 if (!cond) {
71 ExitWithMsg(msg);
72 }
73}
74
75bool IsVerbose() { return getenv("VERBOSE") != nullptr; }
76

Callers 9

ArrayShapeFromStringFunction · 0.70
BufferAssignmentToStringFunction · 0.70
ParseBufferAssignmentFunction · 0.70
mainFunction · 0.70
MemoryUsageTrackerMethod · 0.50
BeginInstructionMethod · 0.50
EndInstructionMethod · 0.50
RunMethod · 0.50

Calls 1

ExitWithMsgFunction · 0.85

Tested by

no test coverage detected