Home
last modified time | relevance | path

Searched refs:ret_code (Results 1 – 25 of 44) sorted by relevance

12

/third_party/mindspore/mindspore/lite/src/delegate/nnrt/
Dnnrt_delegate.cc33 OH_NN_ReturnCode ret_code; in Build() local
40 ret_code = OH_NNModel_BuildFromLiteGraph(oh_nnmodel, this->nnrt_lite_graph); in Build()
41 if (ret_code != OH_NN_SUCCESS) { in Build()
42 MS_LOG(ERROR) << "Build NNModel failed, OH_NN_ReturnCode = " << ret_code; in Build()
60 ret_code = OH_NNDevice_GetAllDevicesID(&allDevicesID, &device_count); in Build()
61 if (ret_code != OH_NN_SUCCESS) { in Build()
62 MS_LOG(ERROR) << "NNModel GetAllDevicesID failed, OH_NN_ReturnCode = " << ret_code; in Build()
79ret_code = OH_NNModel_GetAvailableOperations(oh_nnmodel, allDevicesID[0], &issupported, &op_count); in Build()
80 if (ret_code != OH_NN_SUCCESS) { in Build()
81 MS_LOG(ERROR) << "NNModel GetAvailableOperations failed, OH_NN_ReturnCode = " << ret_code in Build()
[all …]
Dnnrt_model_kernel.cc31 OH_NN_ReturnCode ret_code; in Execute() local
32 ret_code = OH_NNExecutor_Run(this->oh_nn_executor); in Execute()
34 if (ret_code != OH_NN_SUCCESS) { in Execute()
35 MS_LOG(ERROR) << "NNExecutor Run failed, OH_NN_ReturnCode = " << ret_code; in Execute()
145 OH_NN_ReturnCode ret_code = in PrepareInputs() local
154 if (ret_code != OH_NN_SUCCESS) { in PrepareInputs()
156 << "OH_NN_ReturnCode = " << ret_code; in PrepareInputs()
167 …OH_NN_ReturnCode ret_code = OH_NNExecutor_SetOutput(oh_nn_executor, i, tensor.MutableData(), tenso… in TransferOutputs() local
168 if (ret_code != OH_NN_SUCCESS) { in TransferOutputs()
170 << ", OH_NN_ReturnCode = " << ret_code; in TransferOutputs()
/third_party/ltp/testcases/open_posix_testsuite/functional/mqueues/
Dsend_rev_1.c35 int ret_code = PTS_PASS; in main() local
57 ret_code = PTS_UNRESOLVED; in main()
61 for (i = 0; i < MAX_MSG && ret_code == PTS_PASS; i++) { in main()
67 ret_code = PTS_UNRESOLVED; in main()
79 for (i = 0; i < MAX_MSG && ret_code == PTS_PASS; i++) { in main()
85 ret_code = PTS_UNRESOLVED; in main()
93 exit(ret_code); in main()
101 return ret_code; in main()
/third_party/openh264/codec/decoder/core/inc/
Ddec_golomb.h248 #define WELS_CHECK_SE_BOTH_ERROR(val, lower_bound, upper_bound, syntax_name, ret_code) do {\ argument
251 return ret_code;\
255 #define WELS_CHECK_SE_LOWER_ERROR(val, lower_bound, syntax_name, ret_code) do {\ argument
258 return ret_code;\
262 #define WELS_CHECK_SE_UPPER_ERROR(val, upper_bound, syntax_name, ret_code) do {\ argument
265 return ret_code;\
269 #define WELS_CHECK_SE_BOTH_ERROR_NOLOG(val, lower_bound, upper_bound, syntax_name, ret_code) do {\ argument
271 return ret_code;\
275 #define WELS_CHECK_SE_LOWER_ERROR_NOLOG(val, lower_bound, syntax_name, ret_code) do {\ argument
277 return ret_code;\
[all …]
/third_party/ltp/testcases/open_posix_testsuite/bin/
Drun-tests.sh51 ret_code=$?
53 if [ "$ret_code" = "0" ]; then
56 case "$ret_code" in
73 if [ $ret_code -gt 128 ]; then
88 return $ret_code
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/
Dplugin_op.cc45 …int ret_code = memcpy_s(tensor.buffer_.data(), tensor.buffer_.size(), in_row[ind]->GetBuffer(), bu… in TensorRowToPlugin() local
46 CHECK_FAIL_RETURN_UNEXPECTED(ret_code == 0, "Failed to copy data into plugin tensor."); in TensorRowToPlugin()
48 …int ret_code = memcpy_s(tensor.buffer_.data(), buffer_size, in_row[ind]->GetBuffer(), buffer_size); in TensorRowToPlugin() local
49 CHECK_FAIL_RETURN_UNEXPECTED(ret_code == 0, "Failed to copy data into plugin tensor."); in TensorRowToPlugin()
57 … auto ret_code = memcpy_s(tensor.buffer_.data(), tensor.buffer_.size(), str1.data(), str1.size()); in TensorRowToPlugin() local
58 CHECK_FAIL_RETURN_UNEXPECTED(ret_code == 0, "memcpy_s failed when copying string tensor."); in TensorRowToPlugin()
/third_party/jerryscript/targets/riot-stm32f4/source/
Dmain-riotos.c76 int ret_code = JERRY_STANDALONE_EXIT_CODE_OK; in test_jerry() local
82 ret_code = JERRY_STANDALONE_EXIT_CODE_FAIL; in test_jerry()
90 return ret_code; in test_jerry()
/third_party/musl/scripts/
Dinstall.py12 ret_code = process.returncode
14 if ret_code != 0:
15 raise Exception("{} failed, return code is {}".format(cmd, ret_code))
/third_party/jerryscript/jerry-main/
Dmain-unix-test.c123 int ret_code = JERRY_STANDALONE_EXIT_CODE_OK; in main() local
128 ret_code = JERRY_STANDALONE_EXIT_CODE_FAIL; in main()
134 return ret_code; in main()
Dmain-unix.c945 int ret_code = JERRY_STANDALONE_EXIT_CODE_OK; in main() local
952 ret_code = JERRY_STANDALONE_EXIT_CODE_FAIL; in main()
963 ret_code = JERRY_STANDALONE_EXIT_CODE_FAIL; in main()
985 ret_code = JERRY_STANDALONE_EXIT_CODE_FAIL; in main()
998 return ret_code; in main()
/third_party/protobuf/kokoro/docs/
Dtrampoline.sh6 python3 "${KOKORO_GFILE_DIR}/trampoline_v1.py" || ret_code=$?
11 exit ${ret_code}
/third_party/googletest/googletest/test/
Dgtest_test_utils.py275 ret_code = p.wait()
286 if os.WIFSIGNALED(ret_code):
287 self._return_code = -os.WTERMSIG(ret_code)
289 self._return_code = os.WEXITSTATUS(ret_code)
/third_party/ltp/include/lapi/
Drt_sigaction.h67 int ret_code = -1; in sig_initial() local
84 ret_code = 0; in sig_initial()
87 return ret_code; in sig_initial()
/third_party/skia/third_party/externals/abseil-cpp/absl/debugging/internal/
Dvdso_support.cc165 int ret_code = (*VDSOSupport::getcpu_fn_)(&cpu, nullptr, nullptr); in GetCPU() local
166 return ret_code == 0 ? cpu : ret_code; in GetCPU()
/third_party/abseil-cpp/absl/debugging/internal/
Dvdso_support.cc165 int ret_code = (*VDSOSupport::getcpu_fn_)(&cpu, nullptr, nullptr); in GetCPU() local
166 return ret_code == 0 ? cpu : ret_code; in GetCPU()
/third_party/mindspore/mindspore/ccsrc/runtime/device/cpu/
Dcpu_device_address.cc75 auto ret_code = memcpy_s(host_ptr, size, ptr_, size); in SyncDeviceToHost() local
77 if (ret_code == ERANGE) { in SyncDeviceToHost()
79 } else if (ret_code != EOK) { in SyncDeviceToHost()
/third_party/jerryscript/targets/nuttx-stm32f4/
Djerry_main.c445 int ret_code = JERRY_STANDALONE_EXIT_CODE_OK; in main() local
449 ret_code = JERRY_STANDALONE_EXIT_CODE_FAIL; in main()
458 ret_code = JERRY_STANDALONE_EXIT_CODE_FAIL; in main()
464 return ret_code; in main()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/core/
Dtensor.cc122 int ret_code = memcpy_s((*out)->data_, byte_size, src, byte_size); in CreateFromMemory() local
123 CHECK_FAIL_RETURN_UNEXPECTED(ret_code == 0, "Failed to copy data into tensor."); in CreateFromMemory()
125 auto ret_code = std::memcpy((*out)->data_, src, byte_size); in CreateFromMemory() local
126 CHECK_FAIL_RETURN_UNEXPECTED(ret_code == (*out)->data_, "Failed to copy data into tensor."); in CreateFromMemory()
154 int ret_code = memcpy_s((*out)->data_, length, src, length); in CreateFromMemory() local
155 CHECK_FAIL_RETURN_UNEXPECTED(ret_code == 0, "Failed to copy data into tensor."); in CreateFromMemory()
157 auto ret_code = std::memcpy((*out)->data_, src, length); in CreateFromMemory() local
158 CHECK_FAIL_RETURN_UNEXPECTED(ret_code == (*out)->data_, "Failed to copy data into tensor."); in CreateFromMemory()
248 …int ret_code = memcpy_s((*out)->data_ + offset, num_bytes, common::SafeCStr(str), str.length() + 1… in CreateFromByteList() local
249 CHECK_FAIL_RETURN_UNEXPECTED(ret_code == 0, "Cannot copy string into Tensor"); in CreateFromByteList()
[all …]
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/
Dsparse_optimizer_cpu_kernel.h320 …auto ret_code = memcpy_s(reduced_bucket->value_ + value_offset, (max_length - value_offset) * size… in SortAndReduceBucketSparseGradient() local
322 if (ret_code != EOK) { in SortAndReduceBucketSparseGradient()
360 auto ret_code = in ReduceBucketSparseGradient() local
363 if (ret_code != EOK) { in ReduceBucketSparseGradient()
428 auto ret_code = memcpy_s(output_grad->value_ + unique_indices_size * param.value_stride_, in MergeReduceSparseGradient() local
431 if (ret_code != EOK) { in MergeReduceSparseGradient()
434 ret_code = memcpy_s(output_grad->indices_ + unique_indices_size, in MergeReduceSparseGradient()
437 if (ret_code != EOK) { in MergeReduceSparseGradient()
/third_party/ffmpeg/libavcodec/
Dlibaribb24.c136 int ret_code = AVERROR_EXTERNAL; in libaribb24_init() local
169 ret_code = AVERROR(EINVAL); in libaribb24_init()
176 ret_code = AVERROR(ENOMEM); in libaribb24_init()
189 return ret_code; in libaribb24_init()
/third_party/openssl/crypto/evp/
Dbio_b64.c112 int ret = 0, i, ii, j, k, x, n, num, ret_code = 0; in b64_read() local
158 ret_code = 0; in b64_read()
167 ret_code = i; in b64_read()
303 ret_code = 0; in b64_read()
325 return ((ret == 0) ? ret_code : ret); in b64_read()
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/ascend/ir_fusion/
Dtransposed_update_fusion.cc39 auto ret_code = memcpy_s(data_ptr, static_cast<size_t>(perm_tensor->data().nbytes()), in CreatePermTensor() local
41 if (ret_code != 0) { in CreatePermTensor()
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/ascend/ir_fission/
Dlin_space_fission.cc66 …auto ret_code = memcpy_s(data_ptr, static_cast<size_t>(assist_tensor->data().nbytes()), float_data… in CreateTensor() local
67 if (ret_code != 0) { in CreateTensor()
/third_party/mindspore/tests/st/fl/mobile/
Dsimulator.py226 ret_code = rsp_get_model.Retcode()
227 if ret_code == ResponseCode.ResponseCode.SUCCEED:
229 elif ret_code == ResponseCode.ResponseCode.SucNotReady:
/third_party/mindspore/tests/st/fl/hybrid_lenet/
Dsimulator.py226 ret_code = rsp_get_model.Retcode()
227 if ret_code == ResponseCode.ResponseCode.SUCCEED:
229 elif ret_code == ResponseCode.ResponseCode.SucNotReady:

12