Home
last modified time | relevance | path

Searched refs:TF_Code (Results 1 – 19 of 19) sorted by relevance

/external/tensorflow/tensorflow/c/
Dtf_status.h42 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);
Dtf_status.cc30 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()
Dc_api_test.cc201 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 …]
Dc_api_experimental_test.cc247 TF_Code code = TF_GetCode(status); in TEST()
Dwhile_loop_test.cc65 void ExpectError(TF_Code expected_code, const string& expected_msg) { in ExpectError()
/external/tensorflow/tensorflow/python/lib/core/
Dpy_exception_registry.cc36 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()
Dpy_exception_registry.h58 static PyObject* Lookup(TF_Code code);
61 return Lookup(static_cast<TF_Code>(code)); in Lookup()
69 std::map<TF_Code, PyObject*> exc_types_;
Dpybind11_status.h87 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/
Dstatus.h41 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/
Dpy_exception_registry_wrapper.cc31 [](TF_Code code) { tensorflow::PyExceptionRegistry::Lookup(code); }); in PYBIND11_MODULE()
Dtfe_wrapper.cc1067 TF_SetStatus(status.get(), static_cast<TF_Code>(code), message); in PYBIND11_MODULE()
/external/tensorflow/tensorflow/go/
Dstatus.go24 type code C.TF_Code
/external/tensorflow/tensorflow/java/src/main/native/
Dexception_jni.cc48 const char* exceptionClassName(TF_Code code) { in exceptionClassName()
/external/llvm-project/llvm/lib/Analysis/
DTFUtils.cpp353 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/
Dpywrap_tensor.cc190 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/
Dc_api_unified_experimental.cc216 TF_SetStatus(s, static_cast<TF_Code>(status.code()), in TF_AbstractOpSetAttrType()
/external/tensorflow/tensorflow/c/experimental/stream_executor/
Dstream_executor_test.cc632 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/
Dgcs_filesystem.cc68 TF_SetStatus(status, static_cast<TF_Code>(gcs_status.code()), in TF_SetStatusFromGCSStatus()
/external/tensorflow/tensorflow/python/client/
Dtf_session_wrapper.cc1209 py::enum_<TF_Code>(m, "TF_Code") in PYBIND11_MODULE()