Home
last modified time | relevance | path

Searched refs:graphArgs (Results 1 – 23 of 23) sorted by relevance

/test/xts/acts/ai/neural_network_runtime/v2_0/interface/src/
DModelTest.cpp32 OHNNGraphArgs graphArgs = addModel.graphArgs; member in __anon62ff3a5b0111::ModelTest
39 OHNNGraphArgsMulti graphArgsMulti = addTopKModel.graphArgs; 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()
235 graphArgs.specifyIO = false;
236 graphArgs.build = false;
237 graphArgs.addOperation = false;
238 ASSERT_EQ(OH_NN_SUCCESS, BuildSingleOpGraph(model, graphArgs));
239 OH_NN_UInt32Array paramIndices{const_cast<uint32_t *>(graphArgs.paramIndices.data()),
240 graphArgs.paramIndices.size()};
[all …]
DExecutorTest.cpp34 OHNNGraphArgs graphArgs = addModel.graphArgs; member in __anon4e0dbf190111::ExecutorTest
38 void ExecuteModel(OH_NNExecutor *executor, const OHNNGraphArgs &graphArgs, float* expect) in ExecuteModel() argument
40 ASSERT_EQ(OH_NN_SUCCESS, ExecuteGraphMock(executor, graphArgs, expect)); in ExecuteModel()
65 ASSERT_EQ(OH_NN_SUCCESS, BuildSingleOpGraph(model, graphArgs));
91 ASSERT_EQ(OH_NN_SUCCESS, BuildSingleOpGraph(model, graphArgs));
97 const OHNNOperandTest &operandTem = graphArgs.operands[0];
116 ASSERT_EQ(OH_NN_SUCCESS, BuildSingleOpGraph(model, graphArgs));
125 const OHNNOperandTest &operandTem = graphArgs.operands[0];
144 ASSERT_EQ(OH_NN_SUCCESS, BuildSingleOpGraph(model, graphArgs));
153 const OHNNOperandTest &operandTem = graphArgs.operands[0];
[all …]
DMemoryTest.cpp34 OHNNGraphArgs graphArgs = addModel.graphArgs; member in __anona20b0dc30111::MemoryTest
72 ASSERT_EQ(OH_NN_SUCCESS, BuildSingleOpGraph(model, graphArgs));
78 …OH_NN_Memory *OHNNMemory = OH_NNExecutor_AllocateInputMemory(executor, 2, graphArgs.operands[0].le…
92 ASSERT_EQ(OH_NN_SUCCESS, BuildSingleOpGraph(model, graphArgs));
112 ASSERT_EQ(OH_NN_SUCCESS, BuildSingleOpGraph(model, graphArgs));
132 ASSERT_EQ(OH_NN_SUCCESS, BuildSingleOpGraph(model, graphArgs));
138 …OH_NN_Memory *OHNNMemory = OH_NNExecutor_AllocateInputMemory(executor, 0, graphArgs.operands[0].le…
140 …OH_NN_Memory *OHNNMemory2 = OH_NNExecutor_AllocateInputMemory(executor, 0, graphArgs.operands[0].l…
154 ASSERT_EQ(OH_NN_SUCCESS, BuildSingleOpGraph(model, graphArgs));
160 std::thread th1(CheckCreateInputMemory, executor, 0, graphArgs.operands[0].length);
[all …]
DCompileTest.cpp45 ASSERT_EQ(OH_NN_SUCCESS, BuildSingleOpGraph(model, graphArgs)); in GenCacheFile()
73 OHNNGraphArgs graphArgs = addModel.graphArgs; member in __anonf801ab930111::CompileTest
125 OHNNGraphArgsMulti graphArgsMulti = addTopKModel.graphArgs;
172 ASSERT_EQ(OH_NN_SUCCESS, BuildSingleOpGraph(model, graphArgs));
189 ASSERT_EQ(OH_NN_SUCCESS, BuildSingleOpGraph(model, graphArgs));
216 ASSERT_EQ(OH_NN_SUCCESS, BuildSingleOpGraph(model, graphArgs));
232 ASSERT_EQ(OH_NN_SUCCESS, BuildSingleOpGraph(model, graphArgs));
256 ASSERT_EQ(OH_NN_SUCCESS, BuildSingleOpGraph(model, graphArgs));
277 ASSERT_EQ(OH_NN_SUCCESS, BuildSingleOpGraph(model, graphArgs));
298 ASSERT_EQ(OH_NN_SUCCESS, BuildSingleOpGraph(model, graphArgs));
[all …]
/test/xts/acts/ai/neural_network_runtime/v1_0/interface/src/
DModelTest.cpp32 OHNNGraphArgs graphArgs = addModel.graphArgs; member in __anon963a6a9a0111::ModelTest
39 OHNNGraphArgsMulti graphArgsMulti = addTopKModel.graphArgs; 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()
235 graphArgs.specifyIO = false;
236 graphArgs.build = false;
237 graphArgs.addOperation = false;
238 ASSERT_EQ(OH_NN_SUCCESS, BuildSingleOpGraph(model, graphArgs));
239 OH_NN_UInt32Array paramIndices{const_cast<uint32_t *>(graphArgs.paramIndices.data()),
240 graphArgs.paramIndices.size()};
[all …]
DExecutorTest.cpp34 OHNNGraphArgs graphArgs = addModel.graphArgs; member in __anon15dd7af80111::ExecutorTest
38 void ExecuteModel(OH_NNExecutor *executor, const OHNNGraphArgs &graphArgs, float* expect) in ExecuteModel() argument
40 ASSERT_EQ(OH_NN_SUCCESS, ExecuteGraphMock(executor, graphArgs, expect)); in ExecuteModel()
65 ASSERT_EQ(OH_NN_SUCCESS, BuildSingleOpGraph(model, graphArgs));
91 ASSERT_EQ(OH_NN_SUCCESS, BuildSingleOpGraph(model, graphArgs));
97 const OHNNOperandTest &operandTem = graphArgs.operands[0];
116 ASSERT_EQ(OH_NN_SUCCESS, BuildSingleOpGraph(model, graphArgs));
125 const OHNNOperandTest &operandTem = graphArgs.operands[0];
144 ASSERT_EQ(OH_NN_SUCCESS, BuildSingleOpGraph(model, graphArgs));
153 const OHNNOperandTest &operandTem = graphArgs.operands[0];
[all …]
DMemoryTest.cpp34 OHNNGraphArgs graphArgs = addModel.graphArgs; member in __anon3cac45e20111::MemoryTest
72 ASSERT_EQ(OH_NN_SUCCESS, BuildSingleOpGraph(model, graphArgs));
78 …OH_NN_Memory *OHNNMemory = OH_NNExecutor_AllocateInputMemory(executor, 2, graphArgs.operands[0].le…
92 ASSERT_EQ(OH_NN_SUCCESS, BuildSingleOpGraph(model, graphArgs));
112 ASSERT_EQ(OH_NN_SUCCESS, BuildSingleOpGraph(model, graphArgs));
132 ASSERT_EQ(OH_NN_SUCCESS, BuildSingleOpGraph(model, graphArgs));
138 …OH_NN_Memory *OHNNMemory = OH_NNExecutor_AllocateInputMemory(executor, 0, graphArgs.operands[0].le…
140 …OH_NN_Memory *OHNNMemory2 = OH_NNExecutor_AllocateInputMemory(executor, 0, graphArgs.operands[0].l…
154 ASSERT_EQ(OH_NN_SUCCESS, BuildSingleOpGraph(model, graphArgs));
160 std::thread th1(CheckCreateInputMemory, executor, 0, graphArgs.operands[0].length);
[all …]
DCompileTest.cpp45 ASSERT_EQ(OH_NN_SUCCESS, BuildSingleOpGraph(model, graphArgs)); in GenCacheFile()
73 OHNNGraphArgs graphArgs = addModel.graphArgs; member in __anone6c9e7920111::CompileTest
125 OHNNGraphArgsMulti graphArgsMulti = addTopKModel.graphArgs;
172 ASSERT_EQ(OH_NN_SUCCESS, BuildSingleOpGraph(model, graphArgs));
189 ASSERT_EQ(OH_NN_SUCCESS, BuildSingleOpGraph(model, graphArgs));
216 ASSERT_EQ(OH_NN_SUCCESS, BuildSingleOpGraph(model, graphArgs));
232 ASSERT_EQ(OH_NN_SUCCESS, BuildSingleOpGraph(model, graphArgs));
256 ASSERT_EQ(OH_NN_SUCCESS, BuildSingleOpGraph(model, graphArgs));
277 ASSERT_EQ(OH_NN_SUCCESS, BuildSingleOpGraph(model, graphArgs));
298 ASSERT_EQ(OH_NN_SUCCESS, BuildSingleOpGraph(model, graphArgs));
[all …]
/test/xts/acts/ai/neural_network_runtime/v1_0/common/
Dnnrt_utils.cpp29 int BuildMultiOpGraph(OH_NNModel *model, const OHNNGraphArgsMulti &graphArgs) in BuildMultiOpGraph() argument
33 for (int j = 0; j < graphArgs.operationTypes.size(); j++) { in BuildMultiOpGraph()
34 for (int i = 0; i < graphArgs.operands[j].size(); i++) { in BuildMultiOpGraph()
35 const OHNNOperandTest &operandTem = graphArgs.operands[j][i]; in BuildMultiOpGraph()
44 … if (std::find(graphArgs.paramIndices[j].begin(), graphArgs.paramIndices[j].end(), opCnt) != in BuildMultiOpGraph()
45 graphArgs.paramIndices[j].end()) { in BuildMultiOpGraph()
54 auto paramIndices = TransformUInt32Array(graphArgs.paramIndices[j]); in BuildMultiOpGraph()
55 auto inputIndices = TransformUInt32Array(graphArgs.inputIndices[j]); in BuildMultiOpGraph()
56 auto outputIndices = TransformUInt32Array(graphArgs.outputIndices[j]); in BuildMultiOpGraph()
58 … ret = OH_NNModel_AddOperation(model, graphArgs.operationTypes[j], &paramIndices, &inputIndices, in BuildMultiOpGraph()
[all …]
Dnnrt_utils.h70 int BuildSingleOpGraph(OH_NNModel *model, const OHNNGraphArgs &graphArgs);
72 int ExecutorWithMemory(OH_NNExecutor *executor, const OHNNGraphArgs &graphArgs, OH_NN_Memory *OHNNM…
79 int ExecuteGraphMock(OH_NNExecutor *executor, const OHNNGraphArgs &graphArgs, float* expect);
82 int BuildMultiOpGraph(OH_NNModel *model, const OHNNGraphArgsMulti &graphArgs);
Dmodel.h37 OHNNGraphArgs graphArgs = {.operationType = OH_NN_OPS_ADD, member
61 OHNNGraphArgs graphArgs = {.operationType = OH_NN_OPS_AVG_POOL, member
82 OHNNGraphArgs graphArgs = {.operationType = OH_NN_OPS_TOP_K, member
96 OHNNGraphArgsMulti graphArgs = {
/test/xts/acts/ai/neural_network_runtime/v2_0/common/
Dnnrt_utils.cpp29 int BuildMultiOpGraph(OH_NNModel *model, const OHNNGraphArgsMulti &graphArgs) in BuildMultiOpGraph() argument
33 for (int j = 0; j < graphArgs.operationTypes.size(); j++) { in BuildMultiOpGraph()
34 for (int i = 0; i < graphArgs.operands[j].size(); i++) { in BuildMultiOpGraph()
35 const OHNNOperandTest &operandTem = graphArgs.operands[j][i]; in BuildMultiOpGraph()
44 … if (std::find(graphArgs.paramIndices[j].begin(), graphArgs.paramIndices[j].end(), opCnt) != in BuildMultiOpGraph()
45 graphArgs.paramIndices[j].end()) { in BuildMultiOpGraph()
54 auto paramIndices = TransformUInt32Array(graphArgs.paramIndices[j]); in BuildMultiOpGraph()
55 auto inputIndices = TransformUInt32Array(graphArgs.inputIndices[j]); in BuildMultiOpGraph()
56 auto outputIndices = TransformUInt32Array(graphArgs.outputIndices[j]); in BuildMultiOpGraph()
58 … ret = OH_NNModel_AddOperation(model, graphArgs.operationTypes[j], &paramIndices, &inputIndices, in BuildMultiOpGraph()
[all …]
Dnnrt_utils.h70 int BuildSingleOpGraph(OH_NNModel *model, const OHNNGraphArgs &graphArgs);
72 int ExecutorWithMemory(OH_NNExecutor *executor, const OHNNGraphArgs &graphArgs, OH_NN_Memory *OHNNM…
79 int ExecuteGraphMock(OH_NNExecutor *executor, const OHNNGraphArgs &graphArgs, float* expect);
82 int BuildMultiOpGraph(OH_NNModel *model, const OHNNGraphArgsMulti &graphArgs);
Dmodel.h37 OHNNGraphArgs graphArgs = {.operationType = OH_NN_OPS_ADD, member
61 OHNNGraphArgs graphArgs = {.operationType = OH_NN_OPS_AVG_POOL, member
82 OHNNGraphArgs graphArgs = {.operationType = OH_NN_OPS_TOP_K, member
96 OHNNGraphArgsMulti graphArgs = {
/test/xts/acts/ai/nncore/common/
Dnncore_utils.cpp60 int MultiModelBuildEndStep(OH_NNModel *model, const OHNNGraphArgsMulti &graphArgs) in MultiModelBuildEndStep() argument
63 auto graphInputs = TransformUInt32Array(graphArgs.graphInput); in MultiModelBuildEndStep()
64 auto graphOutputs = TransformUInt32Array(graphArgs.graphOutput); in MultiModelBuildEndStep()
78 int BuildMultiOpGraph(OH_NNModel *model, const OHNNGraphArgsMulti &graphArgs) in BuildMultiOpGraph() argument
82 for (size_t j = 0; j < graphArgs.operationTypes.size(); j++) { in BuildMultiOpGraph()
83 for (size_t i = 0; i < graphArgs.operands[j].size(); i++) { in BuildMultiOpGraph()
84 const OHNNOperandTest &operandTem = graphArgs.operands[j][i]; in BuildMultiOpGraph()
98 … if (std::find(graphArgs.paramIndices[j].begin(), graphArgs.paramIndices[j].end(), opCnt) != in BuildMultiOpGraph()
99 graphArgs.paramIndices[j].end()) { in BuildMultiOpGraph()
108 auto paramIndices = TransformUInt32Array(graphArgs.paramIndices[j]); in BuildMultiOpGraph()
[all …]
Dnncore_utils.h83 OHNNGraphArgs graphArgs = {.operationType = OH_NN_OPS_ADD, member
102 OHNNGraphArgs graphArgs = {.operationType = OH_NN_OPS_ADD, member
123 OHNNGraphArgs graphArgs = {.operationType = OH_NN_OPS_TOP_K, member
137 OHNNGraphArgsMulti graphArgs = {
149 int MultiModelBuildEndStep(OH_NNModel *model, const OHNNGraphArgsMulti &graphArgs);
150 int SingleModelBuildEndStep(OH_NNModel *model, const OHNNGraphArgs &graphArgs);
151 int BuildSingleOpGraph(OH_NNModel *model, const OHNNGraphArgs &graphArgs);
152 int BuildSingleOpGraphWithQuantParams(OH_NNModel *model, const OHNNGraphArgs &graphArgs);
156 int BuildMultiOpGraph(OH_NNModel *model, const OHNNGraphArgsMulti &graphArgs);
/test/xts/acts/ai/neural_network_runtime/v1_0/stability/src/
DMultiThreadTest.cpp41 OHNNGraphArgs graphArgs = addModel.graphArgs; member in MultiThreadTest
55 ASSERT_EQ(OH_NN_SUCCESS, BuildSingleOpGraph(model1, graphArgs));
77 ASSERT_EQ(OH_NN_SUCCESS, BuildSingleOpGraph(model1, graphArgs));
86 ASSERT_EQ(OH_NN_SUCCESS, ExecuteGraphMock(executor1, graphArgs, nullptr));
/test/xts/acts/ai/neural_network_runtime/v2_0/stability/src/
DMultiThreadTest.cpp41 OHNNGraphArgs graphArgs = addModel.graphArgs; member in MultiThreadTest
55 ASSERT_EQ(OH_NN_SUCCESS, BuildSingleOpGraph(model1, graphArgs));
77 ASSERT_EQ(OH_NN_SUCCESS, BuildSingleOpGraph(model1, graphArgs));
86 ASSERT_EQ(OH_NN_SUCCESS, ExecuteGraphMock(executor1, graphArgs, nullptr));
/test/xts/acts/ai/nncore/e2etest/src/
DEndToEndTest.cpp43 OHNNGraphArgs graphArgs = addModel.graphArgs; in BuildModel() local
44 ASSERT_EQ(OH_NN_SUCCESS, BuildSingleOpGraph(*model, graphArgs)); in BuildModel()
52 OHNNGraphArgs graphArgs = avgModel.graphArgs; in BuildDynamicModel() local
53 ASSERT_EQ(OH_NN_SUCCESS, BuildSingleOpGraph(*model, graphArgs)); in BuildDynamicModel()
61 OHNNGraphArgs graphArgs = addModel.graphArgs; in BuildModelWithQuantParams() local
62 ASSERT_EQ(OH_NN_SUCCESS, BuildSingleOpGraphWithQuantParams(*model, graphArgs)); in BuildModelWithQuantParams()
/test/xts/acts/ai/nncore/nncoretest/src/
DHdiModelTest.cpp31 OHNNGraphArgs graphArgs = addModel.graphArgs; member in __anon7a0e8e300111::ModelTest
37 OHNNGraphArgsMulti graphArgsMulti = addTopKModel.graphArgs; in BuildAddTopKGraph()
41 void BuildModel(OH_NNModel *model, const OHNNGraphArgs &graphArgs) in BuildModel() argument
43 ASSERT_EQ(OH_NN_SUCCESS, BuildSingleOpGraph(model, graphArgs)); in BuildModel()
DHdiTensorTest.cpp31 OHNNGraphArgs graphArgs = addModel.graphArgs; member in __anon44a5d79a0111::TensorTest
37 OHNNGraphArgsMulti graphArgsMulti = addTopKModel.graphArgs; in BuildAddTopKGraph()
41 void BuildModel(OH_NNModel *model, const OHNNGraphArgs &graphArgs) in BuildModel() argument
43 ASSERT_EQ(OH_NN_SUCCESS, BuildSingleOpGraph(model, graphArgs)); in BuildModel()
DHdiCompilationTest.cpp60 OHNNGraphArgs graphArgs = addModel.graphArgs; member in OHOS::NeuralNetworkCore::CompilationTest
DHdiExecutorTest.cpp36 OHNNGraphArgs graphArgs = addModel.graphArgs; member in OHOS::NeuralNetworkCore::ExecutorTest