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

Method MakeDerived

tensorflow/core/lib/core/status.cc:211–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209static const char* kDerivedMarker = "[_Derived_]";
210
211Status StatusGroup::MakeDerived(const Status& s) {
212 if (IsDerived(s)) {
213 return s;
214 } else {
215 return Status(s.code(), strings::StrCat(kDerivedMarker, s.error_message()));
216 }
217}
218
219bool StatusGroup::IsDerived(const Status& s) {
220 return s.error_message().find(kDerivedMarker) != std::string::npos;

Callers

nothing calls this directly

Calls 3

StatusClass · 0.70
StrCatFunction · 0.50
codeMethod · 0.45

Tested by

no test coverage detected