Home
last modified time | relevance | path

Searched refs:kSuccess (Results 1 – 25 of 258) sorted by relevance

1234567891011

/third_party/mindspore/mindspore/lite/src/delegate/nnrt/checker/
Dprimitive_check.cc17 return mindspore::kSuccess; in CheckPrimitiveSupported()
19 return mindspore::kSuccess; in CheckPrimitiveSupported()
21 return mindspore::kSuccess; in CheckPrimitiveSupported()
23 return mindspore::kSuccess; in CheckPrimitiveSupported()
25 return mindspore::kSuccess; in CheckPrimitiveSupported()
27 return mindspore::kSuccess; in CheckPrimitiveSupported()
29 return mindspore::kSuccess; in CheckPrimitiveSupported()
31 return mindspore::kSuccess; in CheckPrimitiveSupported()
33 return mindspore::kSuccess; in CheckPrimitiveSupported()
35 return mindspore::kSuccess; in CheckPrimitiveSupported()
[all …]
/third_party/mindspore/mindspore/lite/test/ut/src/runtime/kernel/arm/cxx_api/
Dmodel_test.cc33 …RT_TRUE(Serialization::Load("./nets/conv_train_model.ms", ModelType::kMindIR, &graph) == kSuccess); in TEST_F()
35 ASSERT_TRUE(status != kSuccess); in TEST_F()
46 ASSERT_TRUE(model.Build(graph_cell, context, nullptr) != kSuccess); in TEST_F()
56 …RT_TRUE(Serialization::Load("./nets/conv_train_model.ms", ModelType::kMindIR, &graph) == kSuccess); in TEST_F()
57 ASSERT_TRUE(model.Build(GraphCell(graph), context, nullptr) == kSuccess); in TEST_F()
62 ASSERT_TRUE(model.SetTrainMode(true) != kSuccess); in TEST_F()
72 …RT_TRUE(Serialization::Load("./nets/conv_train_model.ms", ModelType::kMindIR, &graph) == kSuccess); in TEST_F()
73 ASSERT_TRUE(model.Build(GraphCell(graph), context, nullptr) == kSuccess); in TEST_F()
74 ASSERT_TRUE(model.SetTrainMode(true) == kSuccess); in TEST_F()
91 …RT_TRUE(Serialization::Load("./nets/conv_train_model.ms", ModelType::kMindIR, &graph) == kSuccess); in TEST_F()
[all …]
Dserialization_test.cc28 ASSERT_TRUE(Serialization::Load("./nets/retinaface1.ms", ModelType::kMindIR, &graph) == kSuccess); in TEST_F()
34 ASSERT_TRUE(status != kSuccess); in TEST_F()
41 ASSERT_TRUE(status != kSuccess); in TEST_F()
46 …RT_TRUE(Serialization::ExportModel(model, ModelType::kFlatBuffer, "./nets/export.ms") != kSuccess); in TEST_F()
/third_party/skia/third_party/externals/spirv-tools/test/
Dparse_number_test.cpp286 EncodeNumberStatus rc = EncodeNumberStatus::kSuccess; in TEST()
309 EncodeNumberStatus rc = EncodeNumberStatus::kSuccess; in TEST()
329 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
332 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
336 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
340 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
346 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
350 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
355 EncodeNumberStatus rc = EncodeNumberStatus::kSuccess; in TEST()
384 EncodeNumberStatus rc = EncodeNumberStatus::kSuccess; in TEST()
[all …]
/third_party/flutter/skia/third_party/externals/spirv-tools/test/
Dparse_number_test.cpp288 EncodeNumberStatus rc = EncodeNumberStatus::kSuccess; in TEST()
311 EncodeNumberStatus rc = EncodeNumberStatus::kSuccess; in TEST()
331 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
334 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
338 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
342 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
348 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
352 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
357 EncodeNumberStatus rc = EncodeNumberStatus::kSuccess; in TEST()
386 EncodeNumberStatus rc = EncodeNumberStatus::kSuccess; in TEST()
[all …]
/third_party/spirv-tools/test/
Dparse_number_test.cpp286 EncodeNumberStatus rc = EncodeNumberStatus::kSuccess; in TEST()
309 EncodeNumberStatus rc = EncodeNumberStatus::kSuccess; in TEST()
329 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
332 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
336 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
340 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
346 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
350 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
355 EncodeNumberStatus rc = EncodeNumberStatus::kSuccess; in TEST()
384 EncodeNumberStatus rc = EncodeNumberStatus::kSuccess; in TEST()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/
Dparse_number_test.cpp286 EncodeNumberStatus rc = EncodeNumberStatus::kSuccess; in TEST()
309 EncodeNumberStatus rc = EncodeNumberStatus::kSuccess; in TEST()
329 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
332 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
336 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
340 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
346 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
350 EXPECT_EQ(EncodeNumberStatus::kSuccess, rc); in TEST()
355 EncodeNumberStatus rc = EncodeNumberStatus::kSuccess; in TEST()
384 EncodeNumberStatus rc = EncodeNumberStatus::kSuccess; in TEST()
[all …]
/third_party/mindspore/mindspore/ccsrc/cxx_api/graph/acl/
Dacl_graph_impl.cc38 if (ret != kSuccess) { in Run()
48 if (ret != kSuccess) { in GetInputs()
58 if (ret != kSuccess) { in GetOutputs()
79 if (ret != kSuccess) { in LoadAclModel()
86 return kSuccess; in LoadAclModel()
91 return kSuccess; in InitEnv()
126 return kSuccess; in InitEnv()
131 return kSuccess; in FinalizeEnv()
141 if (ret != kSuccess) { in FinalizeEnv()
162 return kSuccess; in FinalizeEnv()
[all …]
Dmodel_process.cc118 return kSuccess; in ConstructTensors()
129 if (ret != kSuccess) { in PreInitModelResource()
134 if (ret != kSuccess) { in PreInitModelResource()
138 return kSuccess; in PreInitModelResource()
177 return kSuccess; in InitInputsBuffer()
218 return kSuccess; in CreateDataBuffer()
234 if (CreateDataBuffer(&data_mem_buffer, buffer_size, outputs_) != kSuccess) { in InitOutputsBuffer()
261 return kSuccess; in InitOutputsBuffer()
328 return kSuccess; in UnLoad()
361 return kSuccess; in SetBatchSize()
[all …]
/third_party/mindspore/tests/ut/cpp/cxx_api/
Dserialization_test.cc28 …erialization::Load("./data/mindir/add_no_encrpty.mindir", ModelType::kMindIR, &graph) == kSuccess); in TEST_F()
33 ASSERT_TRUE(status != kSuccess); in TEST_F()
41 ASSERT_TRUE(status != kSuccess); in TEST_F()
53 key, kDecModeAesGcm) == kSuccess); in TEST_F()
60 ASSERT_TRUE(status != kSuccess); in TEST_F()
73 ASSERT_TRUE(status != kSuccess); in TEST_F()
84 ASSERT_TRUE(status != kSuccess); in TEST_F()
90 ModelType::kMindIR, &graphs) == kSuccess); in TEST_F()
96 ModelType::kMindIR, &graphs) == kSuccess); in TEST_F()
103 ASSERT_TRUE(status != kSuccess); in TEST_F()
[all …]
Dstatus_test.cc30 ASSERT_TRUE(status_1 == kSuccess); in TEST_F()
31 ASSERT_TRUE(status_1 == Status(kSuccess)); in TEST_F()
33 ASSERT_EQ(status_1.operator int(), kSuccess); in TEST_F()
34 ASSERT_EQ(status_1.StatusCode(), kSuccess); in TEST_F()
48 Status status_2(kSuccess); in TEST_F()
49 Status status_3(kSuccess, "2333"); in TEST_F()
50 Status status_4(kSuccess, 1, "file", "2333"); in TEST_F()
/third_party/mindspore/mindspore/ccsrc/cxx_api/graph/gpu/
Dgpu_graph_impl.cc46 return kSuccess; in InitEnv()
87 return kSuccess; in InitEnv()
93 return kSuccess; in FinalizeEnv()
102 return kSuccess; in FinalizeEnv()
119 if (ret != kSuccess) { in Load()
125 if (ret != kSuccess) { in Load()
141 return kSuccess; in Load()
148 return kSuccess; in CompileGraph()
179 if (ret != kSuccess) { in ExecuteModel()
194 return kSuccess; in ExecuteModel()
[all …]
/third_party/mindspore/mindspore/ccsrc/cxx_api/model/
Dmodel_impl.cc30 if (ret != kSuccess) { in Predict()
38 if (ret != kSuccess) { in Predict()
43 return kSuccess; in Predict()
72 return kSuccess; in Preprocess()
84 if (ret != kSuccess) { in PredictWithPreprocess()
90 if (ret != kSuccess) { in PredictWithPreprocess()
94 return kSuccess; in PredictWithPreprocess()
/third_party/mindspore/mindspore/lite/examples/runtime_extend/
Dmain.cc40 return kSuccess; in FillInputData()
65 if (ret != kSuccess) { in CompileAndRun()
73 if (ret != kSuccess) { in CompileAndRun()
81 if (ret != kSuccess) { in CompileAndRun()
97 return kSuccess; in CompileAndRun()
104 if (ret != mindspore::kSuccess) { in main()
/third_party/mindspore/mindspore/lite/src/runtime/gpu/opencl/
Dopencl_runtime_wrapper.cc39 return kSuccess; in LoadSource()
52 return kSuccess; in BuildKernel()
64 return kSuccess; in SetKernelArg()
73 return kSuccess; in RunKernel()
83 return kSuccess; in SyncCommandQueue()
99 return kSuccess; in UnmapBuffer()
109 return kSuccess; in ReadImage()
119 return kSuccess; in WriteImage()
/third_party/mindspore/mindspore/ccsrc/cxx_api/graph/ascend/
Dascend_graph_impl.cc69 return kSuccess; in InitEnv()
76 return kSuccess; in CompileGraph()
100 return kSuccess; in CheckModelInputs()
140 return kSuccess; in ExecuteModel()
146 if (ret != kSuccess) { in GetInputs()
170 if (ret != kSuccess) { in GetOutputs()
205 if (ret != kSuccess) { in Load()
213 if (ret != kSuccess) { in Load()
246 return kSuccess; in Load()
253 if (ret != kSuccess) { in Run()
[all …]
/third_party/mindspore/mindspore/lite/examples/runtime_cpp/
Dmain.cc150 return mindspore::kSuccess; in GetInputsAndSetData()
165 return mindspore::kSuccess; in GetInputsByTensorNameAndSetData()
272 if (build_ret != mindspore::kSuccess) { in CreateAndBuildModel()
298 if (load_ret != mindspore::kSuccess) { in CreateAndBuildModelComplicated()
312 if (build_ret != mindspore::kSuccess) { in CreateAndBuildModelComplicated()
349 if (generate_input_ret != mindspore::kSuccess) { in Run()
358 if (predict_ret != mindspore::kSuccess) { in Run()
392 if (resize_ret != mindspore::kSuccess) { in RunResize()
401 if (generate_input_ret != mindspore::kSuccess) { in RunResize()
410 if (predict_ret != mindspore::kSuccess) { in RunResize()
[all …]
/third_party/mindspore/mindspore/lite/src/cxx_api/train/
Dmodel.cc45 if (status != kSuccess) { in Train()
55 if (status != kSuccess) { in Train()
66 return (ret == mindspore::lite::RET_OK) ? kSuccess : kLiteError; in Train()
85 if (status != kSuccess) { in Evaluate()
95 if (status != kSuccess) { in Evaluate()
106 return (ret == mindspore::lite::RET_OK) ? kSuccess : kLiteError; in Evaluate()
/third_party/flutter/skia/src/codec/
DSkSampledCodec.cpp115 if (SkCodec::kSuccess == startResult) { in onGetAndroidPixels()
118 if (incResult == SkCodec::kSuccess) { in onGetAndroidPixels()
119 return SkCodec::kSuccess; in onGetAndroidPixels()
142 if (SkCodec::kSuccess != result) { in onGetAndroidPixels()
161 return SkCodec::kSuccess; in onGetAndroidPixels()
231 if (SkCodec::kSuccess == startResult) { in sampledDecode()
248 if (incResult == SkCodec::kSuccess) { in sampledDecode()
249 return SkCodec::kSuccess; in sampledDecode()
270 } else if (SkCodec::kSuccess != result) { in sampledDecode()
309 return SkCodec::kSuccess; in sampledDecode()
[all …]
/third_party/skia/src/codec/
DSkSampledCodec.cpp113 if (SkCodec::kSuccess == startResult) { in onGetAndroidPixels()
116 if (incResult == SkCodec::kSuccess) { in onGetAndroidPixels()
117 return SkCodec::kSuccess; in onGetAndroidPixels()
140 if (SkCodec::kSuccess != result) { in onGetAndroidPixels()
159 return SkCodec::kSuccess; in onGetAndroidPixels()
224 if (SkCodec::kSuccess == startResult) { in sampledDecode()
241 if (incResult == SkCodec::kSuccess) { in sampledDecode()
242 return SkCodec::kSuccess; in sampledDecode()
267 } else if (SkCodec::kSuccess != result) { in sampledDecode()
306 return SkCodec::kSuccess; in sampledDecode()
[all …]
/third_party/mindspore/mindspore/lite/examples/unified_api/src/
Dinference.cc58 if (status != mindspore::kSuccess) { in main()
60 MS_ASSERT(status != mindspore::kSuccess); in main()
65 if (status != mindspore::kSuccess) { in main()
67 MS_ASSERT(status != mindspore::kSuccess); in main()
96 if (status != mindspore::kSuccess) { in main()
98 MS_ASSERT(status != mindspore::kSuccess); in main()
/third_party/mindspore/mindspore/lite/examples/runtime_gpu_extend/src/
Dcustom_add_kernel_gpu.cc47 if (opencl_runtime_.LoadSource(program_name, source) != kSuccess) { in Prepare()
54 …opencl_runtime_.BuildKernel(&kernel_, program_name, kernel_name_, build_options_ext) != kSuccess) { in Prepare()
86 if (opencl_runtime_.WriteImage(weight_ptr, weight.data()) != kSuccess) { in Prepare()
98 if (opencl_runtime_.SetKernelArg(kernel_, arg_idx, output_shape) != kSuccess) { in Prepare()
118 if (opencl_runtime_.SetKernelArg(kernel_, arg_idx++, input_0_ptr) != kSuccess) { in Execute()
122 if (opencl_runtime_.SetKernelArg(kernel_, arg_idx++, input_1_ptr) != kSuccess) { in Execute()
126 if (opencl_runtime_.SetKernelArg(kernel_, arg_idx++, outputs_[0].MutableData()) != kSuccess) { in Execute()
130 …f (opencl_runtime_.RunKernel(kernel_, global_range_, local_range_, nullptr, &event_) != kSuccess) { in Execute()
167 if (status != kSuccess) { in ReSize()
/third_party/mindspore/tests/st/cpp/model/
Dtest_zero_copy.cc68 ASSERT_TRUE(Serialization::Load(resnet_file, ModelType::kMindIR, &graph) == kSuccess); in TEST_F()
70 ASSERT_TRUE(resnet50.Build(GraphCell(graph), context) == kSuccess); in TEST_F()
91 ASSERT_TRUE(rc == kSuccess); in TEST_F()
94 ASSERT_TRUE(resnet50.Predict(inputs, &outputs) == kSuccess); in TEST_F()
116 ASSERT_TRUE(Serialization::Load(resnet_file, ModelType::kMindIR, &graph) == kSuccess); in TEST_F()
118 ASSERT_TRUE(resnet50.Build(GraphCell(graph), context) == kSuccess); in TEST_F()
139 ASSERT_TRUE(rc == kSuccess); in TEST_F()
151 ASSERT_TRUE(resnet50.Predict(inputs, &outputs) == kSuccess); in TEST_F()
166 ASSERT_TRUE(resnet50.Predict(inputs, &outputs) == kSuccess); in TEST_F()
/third_party/mindspore/mindspore/core/utils/
Dstatus.cc28 enum StatusCode status_code = kSuccess;
81 return kSuccess; in StatusCode()
108 static std::map<enum StatusCode, std::string> info_map = {{kSuccess, "No error occurs."}, in CodeAsCString()
210 Status::operator bool() const { return (StatusCode() == kSuccess); } in operator bool()
213 Status Status::OK() { return StatusCode::kSuccess; } in OK()
214 bool Status::IsOk() const { return (StatusCode() == StatusCode::kSuccess); } in IsOk()
/third_party/skia/tests/
DCodecTest.cpp127 REPORTER_ASSERT(r, SkCodec::kSuccess == codec->startIncrementalDecode(info, bm.getPixels(), in test_incremental_decode()
130 REPORTER_ASSERT(r, SkCodec::kSuccess == codec->incrementalDecode()); in test_incremental_decode()
161 if (SkCodec::kSuccess != codec->startIncrementalDecode(info, bm.getAddr(0, y), in test_in_stripes()
167 if (SkCodec::kSuccess != codec->incrementalDecode()) { in test_in_stripes()
298 : SkCodec::kSuccess; in check_scanline_decode()
319 REPORTER_ASSERT(r, startResult == SkCodec::kSuccess); in check_scanline_decode()
339 REPORTER_ASSERT(r, codec->startScanlineDecode(info) == SkCodec::kSuccess); in check_scanline_decode()
361 REPORTER_ASSERT(r, partialStartResult == SkCodec::kSuccess); in check_scanline_decode()
405 REPORTER_ASSERT(r, result == SkCodec::kSuccess); in check_subset_decode()
437 : SkCodec::kSuccess; in check_android_codec()
[all …]

1234567891011