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

Method ConsumeStatus

tensorflow/compiler/mlir/tensorflow/utils/error_util.cc:39–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37bool StatusScopedDiagnosticHandler::ok() const { return diag_str_.empty(); }
38
39Status StatusScopedDiagnosticHandler::ConsumeStatus() {
40 if (ok()) return Status::OK();
41
42 // TODO(jpienaar) This should be combining status with one previously built
43 // up.
44 Status s = tensorflow::errors::Unknown(diag_str_);
45 diag_str_.clear();
46 return s;
47}
48
49Status StatusScopedDiagnosticHandler::Combine(Status status) {
50 if (status.ok()) return ConsumeStatus();

Callers 10

ImportGraphDefFunction · 0.80
QuantizeModelFunction · 0.80
SparsifyModelFunction · 0.80
TESTFunction · 0.80
RunTPUBridgeFunction · 0.80
ImportFunction · 0.80
ConvertMlirHloToHloFunction · 0.80

Calls 2

UnknownFunction · 0.50
clearMethod · 0.45

Tested by 1

TESTFunction · 0.64