Home
last modified time | relevance | path

Searched refs:TF_GetCode (Results 1 – 25 of 42) sorted by relevance

12

/external/tensorflow/tensorflow/c/eager/
Dc_api_test.cc43 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in BM_InitOp()
55 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in BM_InitOp()
67 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in BM_Execute()
77 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in BM_Execute()
86 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in BM_Execute()
98 EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in TEST()
101 EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in TEST()
107 EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in TEST()
153 EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in TestRemoteExecute()
157 EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in TestRemoteExecute()
[all …]
Dc_api_test_util.cc30 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in TestScalarTensorHandle()
42 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in TestScalarTensorHandle()
54 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in TestScalarTensorHandle()
68 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in DoubleTestMatrixTensorHandle()
82 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in TestMatrixTensorHandle()
96 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in DoubleTestMatrixTensorHandle3X2()
110 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in TestMatrixTensorHandle3X2()
120 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in MatMulOp()
122 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in MatMulOp()
124 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in MatMulOp()
[all …]
Dc_api_experimental_test.cc47 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in ExecuteWithProfiling()
60 ASSERT_TRUE(TF_GetCode(status) == TF_OK) << TF_Message(status); in ExecuteWithProfiling()
66 EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in ExecuteWithProfiling()
70 ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in ExecuteWithProfiling()
75 ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in ExecuteWithProfiling()
92 ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in ExecuteWithProfiling()
111 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in TEST()
Dc_api_debug.cc35 if (TF_GetCode(status) != TF_OK) { in TensorShapeAsVector()
41 if (TF_GetCode(status) != TF_OK) { in TensorShapeAsVector()
56 if (TF_GetCode(status) != TF_OK) { in TFE_TensorHandleTensorDebugInfo()
142 if (TF_GetCode(status) != TF_OK) { in TFE_TensorHandleTensorDebugInfo()
Dc_api_debug_test.cc27 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in TEST()
40 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
/external/tensorflow/tensorflow/c/
Dc_api_experimental_test.cc35 ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); in TestFakeIteratorStack()
38 ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); in TestFakeIteratorStack()
45 ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); in TestFakeIteratorStack()
57 ASSERT_EQ(TF_OUT_OF_RANGE, TF_GetCode(s)) << TF_Message(s); in TestFakeIteratorStack()
61 ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); in TestFakeIteratorStack()
78 ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); in TEST()
81 ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); in TEST()
91 ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); in TEST()
119 ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); in TEST()
145 EXPECT_EQ(TF_GetCode(status), TF_OK); in TEST()
[all …]
Dc_api_test.cc73 CHECK_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); in GPUDeviceName()
79 CHECK_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); in GPUDeviceName()
81 CHECK_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); in GPUDeviceName()
105 CHECK_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); in GPUDeviceName()
113 EXPECT_EQ(TF_OK, TF_GetCode(s)); in TEST()
116 EXPECT_EQ(TF_CANCELLED, TF_GetCode(s)); in TEST()
197 TF_Code code = TF_GetCode(status); in TEST()
239 ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in TestEncodeDecode()
274 ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); in TEST()
280 EXPECT_EQ(TF_INVALID_ARGUMENT, TF_GetCode(s)) << TF_Message(s); in TEST()
[all …]
Dwhile_loop_test.cc43 DCHECK_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); in Init()
51 ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); in Init()
63 EXPECT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); in ExpectOK()
68 EXPECT_EQ(expected_code, TF_GetCode(s_)); in ExpectError()
93 ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); in Run()
111 DCHECK_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); in CreateCondGraph()
118 DCHECK_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); in GraphDebugString()
161 ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); in TEST_F()
166 ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); in TEST_F()
168 ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); in TEST_F()
[all …]
Dc_api_function_test.cc93 ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); in RunT()
99 ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); in RunT()
118 ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); in Run()
123 ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); in Run()
195 ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); in DefineT()
199 ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); in DefineT()
225 ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); in UseHelper()
378 ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); in Reincarnate()
853 ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); in TEST_F()
886 ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); in TEST_F()
[all …]
Dkernels_test.cc44 EXPECT_EQ(TF_OK, TF_GetCode(status)); in MyCreateFunc()
105 EXPECT_EQ(TF_OK, TF_GetCode(status)); in TEST()
107 EXPECT_EQ(TF_OK, TF_GetCode(status)); in TEST()
164 EXPECT_EQ(TF_OK, TF_GetCode(s)) << "Failed to get input: " << TF_Message(s); in TEST()
167 EXPECT_EQ(TF_OUT_OF_RANGE, TF_GetCode(s)); in TEST()
169 EXPECT_EQ(TF_OUT_OF_RANGE, TF_GetCode(s)); in TEST()
173 EXPECT_EQ(TF_OK, TF_GetCode(s)); in TEST()
176 EXPECT_EQ(TF_OUT_OF_RANGE, TF_GetCode(s)); in TEST()
192 EXPECT_EQ(TF_OK, TF_GetCode(status)); in TEST()
Dc_test_util.cc117 ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); in PlaceholderHelper()
132 ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); in ConstHelper()
135 ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); in ConstHelper()
178 ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); in AddOpHelper()
219 ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); in BinaryOpHelper()
258 ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); in NegHelper()
301 ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); in Split3Helper()
392 bool ret = TF_GetCode(s) == TF_OK; in GetGraphDef()
393 EXPECT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); in GetGraphDef()
404 bool ret = TF_GetCode(s) == TF_OK; in GetNodeDef()
[all …]
Dc_api.cc131 TF_Code TF_GetCode(const TF_Status* s) { in TF_GetCode() function
371 if (TF_GetCode(status) != TF_OK) return 0; in TF_StringDecode()
426 if (TF_GetCode(status) == TF_OK) { in TF_NewDeprecatedSession()
618 if (TF_GetCode(status) != TF_OK) { in TF_TensorFromTensor()
778 if (TF_GetCode(status) != TF_OK) { in ExtendSessionGraphHelper()
798 if (TF_GetCode(status) != TF_OK) { in ExtendSessionGraphHelper()
828 if (TF_GetCode(status) != TF_OK) return false; in TF_Run_Inputs()
866 if (TF_GetCode(status) != TF_OK) return; in TF_Run_Helper()
886 if (TF_GetCode(status) != TF_OK) return; in TF_Run_Helper()
943 if (TF_GetCode(status) == TF_OK) { in TF_PRunSetup()
[all …]
Dc_test.c75 if (TF_GetCode(status) != TF_OK) { in main()
82 if (TF_GetCode(status) != TF_OK) { in main()
Dpython_api.cc92 if (TF_GetCode(status) == TF_OK) { in UpdateEdge()
166 if (TF_GetCode(status) != TF_OK) return; in SetHandleShapeAndType()
177 if (TF_GetCode(status) == TF_OK) { in AddWhileInputHack()
Denv_test.cc24 #define ASSERT_TF_OK(x) ASSERT_EQ(TF_OK, TF_GetCode(x))
75 ASSERT_NE(TF_OK, TF_GetCode(s)) in TEST()
/external/tensorflow/tensorflow/c/kernels/
Dbitcast_op.cc56 if (TF_GetCode(s) == TF_OK) { in BitcastOp_Create()
61 if (TF_GetCode(s) == TF_OK) { in BitcastOp_Create()
75 if (TF_GetCode(s) != TF_OK) { in BitcastOp_Create()
96 if (TF_GetCode(status) == TF_OK) { in BitcastOp_Compute()
108 if (TF_GetCode(status) == TF_OK) { in BitcastOp_Compute()
124 if (TF_GetCode(status) == TF_OK) { in BitcastOp_Compute()
131 if (TF_GetCode(status) != TF_OK) { in BitcastOp_Compute()
146 CHECK_EQ(TF_OK, TF_GetCode(status)) in RegisterBitcastOp()
156 CHECK_EQ(TF_OK, TF_GetCode(status)) in RegisterBitcastOp()
/external/tensorflow/tensorflow/go/genop/internal/
Dapi_def_map.go71 if C.TF_GetCode(status) != C.TF_OK {
92 if C.TF_GetCode(status) != C.TF_OK {
108 if C.TF_GetCode(status) != C.TF_OK {
/external/tensorflow/tensorflow/python/eager/
Dpywrap_tensor.cc98 if (TF_GetCode(status.get()) != TF_OK) { in CopyToDevice()
188 if (TF_GetCode(out_status) != TF_OK) RETURN_ERROR in EagerCast()
190 if (TF_GetCode(out_status) != TF_OK) RETURN_ERROR in EagerCast()
192 if (TF_GetCode(out_status) != TF_OK) RETURN_ERROR in EagerCast()
199 if (TF_GetCode(out_status) != TF_OK || num_outputs != 1 || in EagerCast()
428 if (TF_GetCode(self->status) != TF_OK) { in EagerTensor_init()
652 if (TF_GetCode(status.get()) != TF_OK) { in EagerTensor_numpy()
1039 if (TF_GetCode(status.get()) != TF_OK) { in TFE_Py_TensorShapeSlice()
1065 if (TF_GetCode(status.get()) != TF_OK) { in TFE_Py_TensorShapeOnDevice()
Dpywrap_tfe_src.cc372 if (TF_GetCode(status) != TF_OK) return false; in SetOpAttrList()
403 if (TF_GetCode(status) != TF_OK) return false; in SetOpAttrList()
406 if (TF_GetCode(status) != TF_OK) return false; in SetOpAttrList()
422 if (TF_GetCode(status) != TF_OK) return nullptr; in GetFunc()
424 if (TF_GetCode(status) != TF_OK) return nullptr; in GetFunc()
583 if (TF_GetCode(status) != TF_OK) return false; in SetOpAttrScalar()
655 if (TF_GetCode(out_status) != TF_OK) return; in SetOpAttrs()
677 if (TF_GetCode(status) != TF_OK) return; in SetOpAttrWithDefaults()
719 if (TF_GetCode(out_status) != TF_OK) return; in TFE_Py_Execute()
721 if (TF_GetCode(out_status) == TF_OK) { in TFE_Py_Execute()
[all …]
/external/tensorflow/tensorflow/java/src/main/native/
Dtensor_jni.cc228 if (TF_GetCode(status) != TF_OK) { in TF_StringDecodeTojbyteArray()
247 if (TF_GetCode(status) != TF_OK) return; in Add()
279 if (TF_GetCode(status) != TF_OK) return nullptr; in Next()
312 if (TF_GetCode(status) != TF_OK) return; in readNDStringArray()
321 if (TF_GetCode(status) != TF_OK) return; in readNDStringArray()
431 if (TF_GetCode(status) != TF_OK) return; in fillNonScalarTF_STRINGTensorData()
Dexception_jni.cc71 const char* clazz = exceptionClassName(TF_GetCode(status)); in throwExceptionIfNotOK()
/external/tensorflow/tensorflow/tools/lib_package/
Dlibtensorflow_test.c23 if (TF_GetCode(s) != TF_UNKNOWN) { in main()
/external/tensorflow/tensorflow/contrib/rnn/ops/
Dgru_ops_test.cc30 TF_Code code = TF_GetCode(status); in SetUpTestCase()
/external/tensorflow/tensorflow/go/
Dstatus.go43 return code(C.TF_GetCode(s.c))
/external/tensorflow/tensorflow/core/profiler/internal/
Dtfprof_tensor_test.cc48 CHECK(TF_GetCode(status) == TF_OK); in TFProfTensorTest()

12