Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/c/
Dc_api_test.cc191 TF_Code code = TF_GetCode(status); in TEST()
301 EXPECT_EQ(TF_OK, static_cast<TF_Code>(tensorflow::error::OK)); in TEST()
302 EXPECT_EQ(TF_CANCELLED, static_cast<TF_Code>(tensorflow::error::CANCELLED)); in TEST()
303 EXPECT_EQ(TF_UNKNOWN, static_cast<TF_Code>(tensorflow::error::UNKNOWN)); in TEST()
305 static_cast<TF_Code>(tensorflow::error::INVALID_ARGUMENT)); in TEST()
307 static_cast<TF_Code>(tensorflow::error::DEADLINE_EXCEEDED)); in TEST()
308 EXPECT_EQ(TF_NOT_FOUND, static_cast<TF_Code>(tensorflow::error::NOT_FOUND)); in TEST()
310 static_cast<TF_Code>(tensorflow::error::ALREADY_EXISTS)); in TEST()
312 static_cast<TF_Code>(tensorflow::error::PERMISSION_DENIED)); in TEST()
314 static_cast<TF_Code>(tensorflow::error::UNAUTHENTICATED)); in TEST()
[all …]
Dc_api.h133 typedef enum TF_Code { enum
151 } TF_Code; typedef
166 TF_CAPI_EXPORT extern void TF_SetStatus(TF_Status* s, TF_Code code,
170 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.cc111 void TF_SetStatus(TF_Status* s, TF_Code code, const char* msg) { in TF_SetStatus()
119 TF_Code TF_GetCode(const TF_Status* s) { in TF_GetCode()
120 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()