Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/python/lib/core/
Dpy_exception_registry.cc33 TF_Code code = static_cast<TF_Code>(PyLong_AsLong(key)); in Init()
41 PyObject* PyExceptionRegistry::Lookup(TF_Code code) { in Lookup()
Dpy_exception_registry.h61 static PyObject* Lookup(TF_Code code);
68 std::map<TF_Code, PyObject*> exc_types_;
/external/tensorflow/tensorflow/c/
Dc_api_test.cc197 TF_Code code = TF_GetCode(status); in TEST()
322 EXPECT_EQ(TF_OK, static_cast<TF_Code>(tensorflow::error::OK)); in TEST()
323 EXPECT_EQ(TF_CANCELLED, static_cast<TF_Code>(tensorflow::error::CANCELLED)); in TEST()
324 EXPECT_EQ(TF_UNKNOWN, static_cast<TF_Code>(tensorflow::error::UNKNOWN)); in TEST()
326 static_cast<TF_Code>(tensorflow::error::INVALID_ARGUMENT)); in TEST()
328 static_cast<TF_Code>(tensorflow::error::DEADLINE_EXCEEDED)); in TEST()
329 EXPECT_EQ(TF_NOT_FOUND, static_cast<TF_Code>(tensorflow::error::NOT_FOUND)); in TEST()
331 static_cast<TF_Code>(tensorflow::error::ALREADY_EXISTS)); in TEST()
333 static_cast<TF_Code>(tensorflow::error::PERMISSION_DENIED)); in TEST()
335 static_cast<TF_Code>(tensorflow::error::UNAUTHENTICATED)); in TEST()
[all …]
Dc_api.h134 typedef enum TF_Code { enum
152 } TF_Code; typedef
167 TF_CAPI_EXPORT extern void TF_SetStatus(TF_Status* s, TF_Code code,
171 TF_CAPI_EXPORT extern TF_Code TF_GetCode(const TF_Status* s);
Dwhile_loop_test.cc66 void ExpectError(TF_Code expected_code, const string& expected_msg) { in ExpectError()
Dc_api.cc123 void TF_SetStatus(TF_Status* s, TF_Code code, const char* msg) { in TF_SetStatus()
131 TF_Code TF_GetCode(const TF_Status* s) { in TF_GetCode()
132 return static_cast<TF_Code>(s->status.code()); in TF_GetCode()
/external/tensorflow/tensorflow/contrib/rnn/ops/
Dgru_ops_test.cc30 TF_Code code = TF_GetCode(status); in SetUpTestCase()
Dlstm_ops_test.cc32 TF_Code code = TF_GetCode(status); in SetUpTestCase()
/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/tensorflow/tensorflow/python/platform/
Dbase.i245 TF_Code code = TF_GetCode($1);