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

Function RaiseFallbackException

tensorflow/python/eager/pywrap_tfe_src.cc:841–853  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

839}
840
841void RaiseFallbackException(const char* message) {
842 if (fallback_exception_class != nullptr) {
843 PyErr_SetString(fallback_exception_class, message);
844 return;
845 }
846
847 PyErr_SetString(
848 PyExc_RuntimeError,
849 tensorflow::strings::StrCat(
850 "Fallback exception type not set, attempting to fallback due to ",
851 message)
852 .data());
853}
854
855int MaybeRaiseExceptionFromTFStatus(TF_Status* status, PyObject* exception) {
856 if (TF_GetCode(status) == TF_OK) return 0;

Callers 1

TFE_Py_FastPathExecute_CFunction · 0.85

Calls 2

StrCatFunction · 0.50
dataMethod · 0.45

Tested by

no test coverage detected