Home
last modified time | relevance | path

Searched refs:OH_AI_Status (Results 1 – 10 of 10) sorted by relevance

/third_party/mindspore/interfaces/kits/c/
Dmodel.h93 OH_AI_API OH_AI_Status OH_AI_ModelBuild(OH_AI_ModelHandle model, const void *model_data, size_t dat…
105 OH_AI_API OH_AI_Status OH_AI_ModelBuildFromFile(OH_AI_ModelHandle model, const char *model_path,
117 OH_AI_API OH_AI_Status OH_AI_ModelResize(OH_AI_ModelHandle model, const OH_AI_TensorHandleArray inp…
130 OH_AI_API OH_AI_Status OH_AI_ModelPredict(OH_AI_ModelHandle model, const OH_AI_TensorHandleArray in…
227 OH_AI_API OH_AI_Status OH_AI_TrainModelBuild(OH_AI_ModelHandle model, const void *model_data, size_…
241 OH_AI_API OH_AI_Status OH_AI_TrainModelBuildFromFile(OH_AI_ModelHandle model, const char *model_pat…
254 OH_AI_API OH_AI_Status OH_AI_RunStep(OH_AI_ModelHandle model, const OH_AI_KernelCallBack before,
263 OH_AI_API OH_AI_Status OH_AI_ModelSetLearningRate(OH_AI_ModelHandle model, float learning_rate);
287 OH_AI_API OH_AI_Status OH_AI_ModelUpdateWeights(OH_AI_ModelHandle model, const OH_AI_TensorHandleAr…
304 OH_AI_API OH_AI_Status OH_AI_ModelSetTrainMode(OH_AI_ModelHandle model, bool train);
[all …]
Dstatus.h52 typedef enum OH_AI_Status { enum
95 } OH_AI_Status; typedef
Dtensor.h199 OH_AI_API OH_AI_Status OH_AI_TensorSetUserData(OH_AI_TensorHandle tensor, void *data, size_t data_s…
Dcontext.h353 OH_AI_API OH_AI_Status OH_AI_DeviceInfoAddExtension(OH_AI_DeviceInfoHandle device_info, const char …
/third_party/mindspore/test/utils/
Dmodel_utils.cpp165 OH_AI_Status ret = OH_AI_STATUS_SUCCESS; in ModelPredict()
185 OH_AI_Status resize_ret = OH_AI_ModelResize(model, inputs, &shapeInfos, inputs.handle_num); in ModelPredict()
192 OH_AI_Status predictRet = OH_AI_STATUS_SUCCESS; in ModelPredict()
217 OH_AI_Status ret = OH_AI_STATUS_SUCCESS; in ModelTrain()
237 OH_AI_Status resize_ret = OH_AI_ModelResize(model, inputs, &shapeInfos, inputs.handle_num); in ModelTrain()
/third_party/mindspore/test/unittest/
Dnnrt_delegate_unit_test.cpp147 OH_AI_Status ret = OH_AI_ModelBuildFromFile(model, "/data/test/resource/tinynet.om.ms",
192 OH_AI_Status ret = OH_AI_ModelBuildFromFile(model, "/data/test/resource/ml_face_isface.ms",
Dmindspore_unit_test.cpp299 OH_AI_Status ret = OH_AI_ModelPredict(model, inputs, &output, nullptr, nullptr);
360OH_AI_Status ret = OH_AI_ModelBuildFromFile(model, "/data/test/resource/ml_face_isface.ms", OH_AI_…
413OH_AI_Status ret = OH_AI_ModelBuildFromFile(model, "/data/test/resource/ml_face_isface.ms", OH_AI_…
806OH_AI_Status ret = OH_AI_ModelBuildFromFile(model, "/data/test/resource/ml_face_isface.ms", OH_AI_…
/third_party/mindspore/patches/
D0009-npu-zero-copy.patch44 +OH_AI_API OH_AI_Status OH_AI_TensorSetAllocator(OH_AI_TensorHandle tensor, void *allocator);
85 @@ -246,10 +252,42 @@ OH_AI_Status OH_AI_ModelPredict(OH_AI_ModelHandle model, const OH_AI_TensorHa…
118 + return static_cast<OH_AI_Status>(ret.StatusCode());
126 return static_cast<OH_AI_Status>(ret.StatusCode());
165 +OH_AI_Status OH_AI_TensorSetAllocator(OH_AI_TensorHandle tensor, void *allocator) {
D0004-cross-compile-ndkso-fp16-nnrt-train_capi.patch223 +OH_AI_API OH_AI_Status OH_AI_DeviceInfoAddExtension(OH_AI_DeviceInfoHandle device_info, const char…
291 +/// \return OH_AI_Status.
292 +OH_AI_API OH_AI_Status OH_AI_TrainModelBuild(OH_AI_ModelHandle model, const void *model_data, size…
304 +/// \return OH_AI_Status.
305 +OH_AI_API OH_AI_Status OH_AI_TrainModelBuildFromFile(OH_AI_ModelHandle model, const char *model_pa…
315 +/// \return OH_AI_Status.
316 +OH_AI_API OH_AI_Status OH_AI_RunStep(OH_AI_ModelHandle model, const OH_AI_KernelCallBack before,
323 +/// \return OH_AI_Status of operation.
324 +OH_AI_API OH_AI_Status OH_AI_ModelSetLearningRate(OH_AI_ModelHandle model, float learning_rate);
342 +/// \return OH_AI_Status
[all …]
D0005-micro-for-ohos.patch10928 +typedef OH_AI_Status (*ModelBuild)(OH_AI_ModelHandle model, const void *model_data,
10940 +OH_AI_Status OH_AI_ModelBuild(OH_AI_ModelHandle model, const void *model_data,
10958 +typedef OH_AI_Status (*ModelPredict)(OH_AI_ModelHandle model,
11052 + ofs << "OH_AI_Status OH_AI_ModelCreate" << ctx->GetCurModelIndex() << "(MicroModel *micro_mode…
11125 + ofs << "OH_AI_Status OH_AI_ModelCreate" << ctx->GetCurModelIndex() << "(MicroModel *micro_mode…
11150 + OH_AI_Status ret =
11166 + ofs << "OH_AI_Status OH_AI_ModelBuild" << model_index
11247 + ofs << "OH_AI_Status OH_AI_ModelResize" << ctx->GetCurModelIndex()
11397 +OH_AI_Status OH_AI_ModelPredict(OH_AI_ModelHandle model, const OH_AI_TensorHandleArray inputs, OH_…
11417 + ofs << "OH_AI_Status OH_AI_ModelPredict" << ctx->GetCurModelIndex()
[all …]