Home
last modified time | relevance | path

Searched refs:model (Results 1 – 25 of 110) sorted by relevance

12345

/test/xts/acts/ai/neural_network_runtime/interface/src/
DCompileTest.cpp43 OH_NNModel *model = OH_NNModel_Construct(); in GenCacheFile() local
44 ASSERT_NE(nullptr, model); in GenCacheFile()
45 ASSERT_EQ(OH_NN_SUCCESS, BuildSingleOpGraph(model, graphArgs)); in GenCacheFile()
46 OH_NNCompilation *compilation = OH_NNCompilation_Construct(model); in GenCacheFile()
53 Free(model, compilation); in GenCacheFile()
101 OH_NNModel *model = OH_NNModel_Construct(); variable
102 ASSERT_NE(nullptr, model);
103 OH_NNCompilation *compilation = OH_NNCompilation_Construct(model);
105 Free(model, compilation);
119 OH_NNModel *model = OH_NNModel_Construct(); variable
[all …]
DModelTest.cpp36 void BuildAddTopKGraph(OH_NNModel *model) in BuildAddTopKGraph() argument
40 ASSERT_EQ(OH_NN_SUCCESS, BuildMultiOpGraph(model, graphArgsMulti)); in BuildAddTopKGraph()
43 void BuildModel(OH_NNModel *model, const OHNNGraphArgs &graphArgs) in BuildModel() argument
45 ASSERT_EQ(OH_NN_SUCCESS, BuildSingleOpGraph(model, graphArgs)); in BuildModel()
57 OH_NNModel *model = OH_NNModel_Construct(); variable
58 ASSERT_NE(nullptr, model);
105 OH_NNModel *model = OH_NNModel_Construct(); variable
106 ASSERT_NE(nullptr, model);
108 OH_NN_ReturnCode ret = OH_NNModel_AddTensor(model, nullptr);
110 Free(model);
[all …]
DMemoryTest.cpp70 OH_NNModel *model = OH_NNModel_Construct(); variable
71 ASSERT_NE(nullptr, model);
72 ASSERT_EQ(OH_NN_SUCCESS, BuildSingleOpGraph(model, graphArgs));
73 OH_NNCompilation *compilation = OH_NNCompilation_Construct(model);
80 Free(model, compilation, executor);
90 OH_NNModel *model = OH_NNModel_Construct(); variable
91 ASSERT_NE(nullptr, model);
92 ASSERT_EQ(OH_NN_SUCCESS, BuildSingleOpGraph(model, graphArgs));
93 OH_NNCompilation *compilation = OH_NNCompilation_Construct(model);
100 Free(model, compilation, executor);
[all …]
DExecutorTest.cpp63 OH_NNModel *model = OH_NNModel_Construct(); variable
64 ASSERT_NE(nullptr, model);
65 ASSERT_EQ(OH_NN_SUCCESS, BuildSingleOpGraph(model, graphArgs));
67 OH_NNCompilation *compilation = OH_NNCompilation_Construct(model);
79 Free(model, compilation, executor);
89 OH_NNModel *model = OH_NNModel_Construct(); variable
90 ASSERT_NE(nullptr, model);
91 ASSERT_EQ(OH_NN_SUCCESS, BuildSingleOpGraph(model, graphArgs));
93 OH_NNCompilation *compilation = OH_NNCompilation_Construct(model);
104 Free(model, compilation);
[all …]
/test/xts/acts/ai/mindspore/src/
Dohos_c_api_test_mslite.cpp118 void ModelPredict(OH_AI_ModelHandle model, OH_AI_ContextHandle context, string model_name, in ModelPredict() argument
129 ret = OH_AI_ModelBuild(model, graphBuf, size, OH_AI_MODELTYPE_MINDIR, context); in ModelPredict()
132 ret = OH_AI_ModelBuildFromFile(model, graphPath, OH_AI_MODELTYPE_MINDIR, context); in ModelPredict()
137 OH_AI_TensorHandleArray inputs = OH_AI_ModelGetInputs(model); in ModelPredict()
141 OH_AI_Status resize_ret = OH_AI_ModelResize(model, inputs, &shape_infos, inputs.handle_num); in ModelPredict()
152 … predict_ret = OH_AI_ModelPredict(model, inputs, &outputs, before_call_back, after_call_back); in ModelPredict()
155 predict_ret = OH_AI_ModelPredict(model, inputs, &outputs, nullptr, nullptr); in ModelPredict()
159 OH_AI_ModelDestroy(&model); in ModelPredict()
169 OH_AI_ModelHandle model = OH_AI_ModelCreate(); in Predict_CPU() local
170 ASSERT_NE(model, nullptr); in Predict_CPU()
[all …]
/test/xts/hats/ai/nnrt/hdi/nnrtFunctionTest/src/
Dhdi_model_prepare_test.cpp53 OH_NNModel *model = nullptr; variable
54 HDICommon::BuildAddGraph(&model);
55 ASSERT_NE(model, nullptr);
59 ASSERT_EQ(OH_NN_SUCCESS, HDICommon::ConvertModel(device_, model, tensorBuffer, &iModel));
115 OH_NNModel *model = nullptr; variable
116 HDICommon::BuildAddGraph(&model);
117 ASSERT_NE(model, nullptr);
121 ASSERT_EQ(OH_NN_SUCCESS, HDICommon::ConvertModel(device_, model, tensorBuffer, &iModel));
159 OH_NNModel *model = nullptr; variable
160 HDICommon::BuildAddGraph(&model);
[all …]
Dhdi_device_test.cpp166 OH_NNModel *model = nullptr; variable
167 HDICommon::BuildAddGraph(&model);
168 ASSERT_NE(model, nullptr);
172 ASSERT_EQ(OH_NN_SUCCESS, HDICommon::ConvertModel(device_, model, tensorBuffer, &iModel));
193 OH_NNModel *model = nullptr; variable
194 HDICommon::BuildAddGraph(&model);
195 ASSERT_NE(model, nullptr);
199 ASSERT_EQ(OH_NN_SUCCESS, HDICommon::ConvertModel(device_, model, tensorBuffer, &iModel));
225 OH_NNModel *model = nullptr; variable
226 HDICommon::BuildAddGraph(&model);
[all …]
Dhdi_model_run_test.cpp41 OH_NNModel *model = nullptr; in AddModelTest() local
43 HDICommon::BuildAddGraphDynamic(&model); in AddModelTest()
45 HDICommon::BuildAddGraph(&model); in AddModelTest()
47 ASSERT_NE(model, nullptr); in AddModelTest()
51 ASSERT_EQ(OH_NN_SUCCESS, HDICommon::ConvertModel(device_, model, tensorBuffer, &iModel)); in AddModelTest()
157 OH_NNModel *model = nullptr; variable
158 HDICommon::BuildAddGraph(&model);
159 ASSERT_NE(model, nullptr);
163 ASSERT_EQ(OH_NN_SUCCESS, HDICommon::ConvertModel(device_, model, tensorBuffer, &iModel));
197 OH_NNModel *model = nullptr; variable
[all …]
/test/xts/hats/ai/nnrt/hdi/common/
Dhdi_nnrt_test_utils.cpp28 void HDICommon::BuildAddGraph(OH_NNModel **model) in BuildAddGraph() argument
32 *model = OH_NNModel_Construct(); in BuildAddGraph()
33 ASSERT_NE(nullptr, model); in BuildAddGraph()
40 ASSERT_EQ(OH_NN_SUCCESS, OH_NNModel_AddTensor(*model, &firstAddend)); in BuildAddGraph()
41 ASSERT_EQ(OH_NN_SUCCESS, OH_NNModel_AddTensor(*model, &secondAddend)); in BuildAddGraph()
48 ASSERT_EQ(OH_NN_SUCCESS, OH_NNModel_AddTensor(*model, &activationType)); in BuildAddGraph()
50 …ASSERT_EQ(OH_NN_SUCCESS, OH_NNModel_SetTensorData(*model, opCnt, (void *)&activationValue, sizeof(… in BuildAddGraph()
56 ASSERT_EQ(OH_NN_SUCCESS, OH_NNModel_AddTensor(*model, &output)); in BuildAddGraph()
60 … OH_NNModel_AddOperation(*model, OH_NN_OPS_ADD, &paramIndices, &inputIndices, &outputIndices)); in BuildAddGraph()
61 …ASSERT_EQ(OH_NN_SUCCESS, OH_NNModel_SpecifyInputsAndOutputs(*model, &inputIndices, &outputIndices)… in BuildAddGraph()
[all …]
Dhdi_nnrt_test_utils.h44 static void BuildAddGraph(OH_NNModel **model);
45 static void BuildAddGraphDynamic(OH_NNModel **model);
46 static OH_NN_ReturnCode ConvertModel(OHOS::sptr<V1_0::INnrtDevice> device_, OH_NNModel *model,
/test/xts/acts/ai/neural_network_runtime/common/
Dnnrt_utils.cpp29 int BuildMultiOpGraph(OH_NNModel *model, const OHNNGraphArgsMulti &graphArgs) in BuildMultiOpGraph() argument
39 ret = OH_NNModel_AddTensor(model, &operand); in BuildMultiOpGraph()
46 ret = OH_NNModel_SetTensorData(model, opCnt, operandTem.data, operandTem.length); in BuildMultiOpGraph()
58 … ret = OH_NNModel_AddOperation(model, graphArgs.operationTypes[j], &paramIndices, &inputIndices, in BuildMultiOpGraph()
67 ret = OH_NNModel_SpecifyInputsAndOutputs(model, &graphInputs, &graphOutputs); in BuildMultiOpGraph()
72 ret = OH_NNModel_Finish(model); in BuildMultiOpGraph()
80 int BuildSingleOpGraph(OH_NNModel *model, const OHNNGraphArgs &graphArgs) in BuildSingleOpGraph() argument
88 ret = OH_NNModel_AddTensor(model, &operand); in BuildSingleOpGraph()
96 ret = OH_NNModel_SetTensorData(model, i, operandTem.data, operandTem.length); in BuildSingleOpGraph()
107 ret = OH_NNModel_AddOperation(model, graphArgs.operationType, &paramIndices, &inputIndices, in BuildSingleOpGraph()
[all …]
Dnnrt_utils.h75 void Free(OH_NNModel *model = nullptr, OH_NNCompilation *compilation = nullptr, OH_NNExecutor *exec…
82 int BuildMultiOpGraph(OH_NNModel *model, const OHNNGraphArgsMulti &graphArgs);
Dmock_idevice.h42 int32_t GetSupportedOperation(const Model& model, std::vector<bool>& ops) override;
68 …int32_t PrepareModel(const Model& model, const ModelConfig& config, sptr<IPreparedModel>& prepared…
/test/xts/device_attest/services/core/adapter/
Dattest_adapter_mock.c141 char* model = NULL; in OsGetUnencryptedUdidStub() local
152 model = GetDeviceParaStub("productModel"); in OsGetUnencryptedUdidStub()
153 if (model == NULL) { in OsGetUnencryptedUdidStub()
163 udidSize = strlen(manufacture) + strlen(model) + strlen(sn) + 1; in OsGetUnencryptedUdidStub()
169 … if ((strcat_s(udid, udidSize, manufacture) != 0) || (strcat_s(udid, udidSize, model) != 0) || in OsGetUnencryptedUdidStub()
178 ATTEST_MEM_FREE(model); in OsGetUnencryptedUdidStub()
/test/xts/device_attest_lite/services/core/adapter/
Dattest_adapter_mock.c141 char* model = NULL; in OsGetUnencryptedUdidStub() local
152 model = GetDeviceParaStub("productModel"); in OsGetUnencryptedUdidStub()
153 if (model == NULL) { in OsGetUnencryptedUdidStub()
163 udidSize = strlen(manufacture) + strlen(model) + strlen(sn) + 1; in OsGetUnencryptedUdidStub()
169 … if ((strcat_s(udid, udidSize, manufacture) != 0) || (strcat_s(udid, udidSize, model) != 0) || in OsGetUnencryptedUdidStub()
178 ATTEST_MEM_FREE(model); in OsGetUnencryptedUdidStub()
/test/xts/hats/ai/nnrt/hdi/nnrtStabilityTest/src/
Dhdi_stability_test.cpp109 OH_NNModel *model = nullptr; variable
110 HDICommon::BuildAddGraph(&model);
114 auto retConvert = HDICommon::ConvertModel(device, model, tensorBuffer, &iModel);
158 OH_NNModel *model = nullptr; variable
159 HDICommon::BuildAddGraph(&model);
163 auto retConvert = HDICommon::ConvertModel(device, model, tensorBuffer, &iModel);
/test/xts/acts/validator/acts_validator/src/main/ets/pages/Audio/
DAudioInputRoutingTypeC.ets16 import FirstDialog from '../model/FirstDialog';
17 import AudioCapturer from '../model/AudioCapturer'
18 import Logger from '../model/Logger'
22 import mediaPlay from '../model/mediaPlay'
DAudioInputRoutingWiredHeadset.ets16 import FirstDialog from '../model/FirstDialog';
17 import AudioCapturer from '../model/AudioCapturer'
18 import Logger from '../model/Logger'
22 import mediaPlay from '../model/mediaPlay'
DAudioOutputRoutingBT.ets16 import FirstDialog from '../model/FirstDialog';
17 import AudioRenderer from '../model/AudioRenderer'
18 import Logger from '../model/Logger'
DAudioOutputRoutingTypeC.ets16 import FirstDialog from '../model/FirstDialog';
17 import AudioRenderer from '../model/AudioRenderer'
18 import Logger from '../model/Logger'
DAudioOutputRoutingWiredHeadset.ets16 import FirstDialog from '../model/FirstDialog';
17 import AudioRenderer from '../model/AudioRenderer'
18 import Logger from '../model/Logger'
/test/xts/acts/validator/acts_validator/src/main/ets/pages/Camera/
DCameraFlash.ets18 import Logger from '../model/Logger'
19 import CameraService from '../model/CameraService'
21 import FirstDialog from '../model/FirstDialog';
/test/xts/device_attest_lite/services/core/dfx/
Dattest_dfx.c114 if (productInfo->model == NULL) { in PrintDeviceProductInfo()
117 ATTEST_LOG_INFO_ANONY("model = %s;", productInfo->model); in PrintDeviceProductInfo()
/test/xts/device_attest/services/core/dfx/
Dattest_dfx.c114 if (productInfo->model == NULL) { in PrintDeviceProductInfo()
117 ATTEST_LOG_INFO_ANONY("model = %s;", productInfo->model); in PrintDeviceProductInfo()
/test/xts/device_attest_lite/services/core/include/
Dattest_type.h131 char *model; member

12345