/external/tensorflow/tensorflow/c/ |
D | tf_status.h | 42 typedef enum TF_Code { enum 60 } TF_Code; typedef 72 TF_CAPI_EXPORT extern void TF_SetStatus(TF_Status* s, TF_Code code, 82 TF_CAPI_EXPORT extern TF_Code TF_GetCode(const TF_Status* s);
|
D | tf_status.cc | 30 void TF_SetStatus(TF_Status* s, TF_Code code, const char* msg) { in TF_SetStatus() 44 TF_Code TF_GetCode(const TF_Status* s) { in TF_GetCode() 45 return static_cast<TF_Code>(s->status.code()); in TF_GetCode()
|
D | c_api_test.cc | 201 TF_Code code = TF_GetCode(status); in TEST() 325 EXPECT_EQ(TF_OK, static_cast<TF_Code>(tensorflow::error::OK)); in TEST() 326 EXPECT_EQ(TF_CANCELLED, static_cast<TF_Code>(tensorflow::error::CANCELLED)); in TEST() 327 EXPECT_EQ(TF_UNKNOWN, static_cast<TF_Code>(tensorflow::error::UNKNOWN)); in TEST() 329 static_cast<TF_Code>(tensorflow::error::INVALID_ARGUMENT)); in TEST() 331 static_cast<TF_Code>(tensorflow::error::DEADLINE_EXCEEDED)); in TEST() 332 EXPECT_EQ(TF_NOT_FOUND, static_cast<TF_Code>(tensorflow::error::NOT_FOUND)); in TEST() 334 static_cast<TF_Code>(tensorflow::error::ALREADY_EXISTS)); in TEST() 336 static_cast<TF_Code>(tensorflow::error::PERMISSION_DENIED)); in TEST() 338 static_cast<TF_Code>(tensorflow::error::UNAUTHENTICATED)); in TEST() [all …]
|
D | c_api_experimental_test.cc | 247 TF_Code code = TF_GetCode(status); in TEST()
|
D | while_loop_test.cc | 65 void ExpectError(TF_Code expected_code, const string& expected_msg) { in ExpectError()
|
/external/tensorflow/tensorflow/python/lib/core/ |
D | py_exception_registry.cc | 36 singleton_->exc_types_.emplace(static_cast<TF_Code>(PyLong_AsLong(key)), in Init() 43 static const TF_Code kAllCodes[] = {TF_CANCELLED, in Init() 59 for (TF_Code code : kAllCodes) { in Init() 66 PyObject* PyExceptionRegistry::Lookup(TF_Code code) { in Lookup()
|
D | py_exception_registry.h | 58 static PyObject* Lookup(TF_Code code); 61 return Lookup(static_cast<TF_Code>(code)); in Lookup() 69 std::map<TF_Code, PyObject*> exc_types_;
|
D | pybind11_status.h | 87 TF_Code code = TF_GetCode(status); in MaybeRaiseFromTFStatus() 95 TF_Code code = TF_GetCode(status); in MaybeRaiseRegisteredFromTFStatus() 106 TF_Code code = TF_GetCode(status); in MaybeRaiseRegisteredFromTFStatusWithGIL()
|
/external/tensorflow/tensorflow/cc/experimental/base/public/ |
D | status.h | 41 TF_Code code() const; 51 void SetStatus(TF_Code code, const std::string& msg); 80 inline TF_Code Status::code() const { return TF_GetCode(status_.get()); } in code() 88 inline void Status::SetStatus(TF_Code code, const std::string& msg) { in SetStatus()
|
/external/tensorflow/tensorflow/python/ |
D | py_exception_registry_wrapper.cc | 31 [](TF_Code code) { tensorflow::PyExceptionRegistry::Lookup(code); }); in PYBIND11_MODULE()
|
D | tfe_wrapper.cc | 1067 TF_SetStatus(status.get(), static_cast<TF_Code>(code), message); in PYBIND11_MODULE()
|
/external/tensorflow/tensorflow/go/ |
D | status.go | 24 type code C.TF_Code
|
/external/tensorflow/tensorflow/java/src/main/native/ |
D | exception_jni.cc | 48 const char* exceptionClassName(TF_Code code) { in exceptionClassName()
|
/external/llvm-project/llvm/lib/Analysis/ |
D | TFUtils.cpp | 353 if (TF_GetCode(Status.get()) != TF_Code::TF_OK) { in TFModelEvaluatorImpl() 404 if (TF_GetCode(Status.get()) != TF_Code::TF_OK) in ~TFModelEvaluatorImpl() 424 if (TF_GetCode(Status.get()) != TF_Code::TF_OK) { in evaluate()
|
/external/tensorflow/tensorflow/python/eager/ |
D | pywrap_tensor.cc | 190 TF_Code code = TF_GetCode(status); in RaiseExceptionTypeFromTFStatus() 321 const TF_Code code = TF_GetCode(status.get()); in ConvertToEagerTensorUncached() 524 TF_Code code = TF_GetCode(&self->status); in EagerTensor_shape_tuple()
|
/external/tensorflow/tensorflow/c/eager/ |
D | c_api_unified_experimental.cc | 216 TF_SetStatus(s, static_cast<TF_Code>(status.code()), in TF_AbstractOpSetAttrType()
|
/external/tensorflow/tensorflow/c/experimental/stream_executor/ |
D | stream_executor_test.cc | 632 static TF_Code start_timer_status = TF_OK; in TEST_F() 633 static TF_Code stop_timer_status = TF_OK; in TEST_F()
|
/external/tensorflow/tensorflow/c/experimental/filesystem/plugins/gcs/ |
D | gcs_filesystem.cc | 68 TF_SetStatus(status, static_cast<TF_Code>(gcs_status.code()), in TF_SetStatusFromGCSStatus()
|
/external/tensorflow/tensorflow/python/client/ |
D | tf_session_wrapper.cc | 1209 py::enum_<TF_Code>(m, "TF_Code") in PYBIND11_MODULE()
|