Home
last modified time | relevance | path

Searched refs:inputMemory (Results 1 – 7 of 7) sorted by relevance

/test/xts/acts/ai/neural_network_runtime/v1_0/interface/src/
DMemoryTest.cpp817 …OH_NN_Memory *inputMemory = OH_NNExecutor_AllocateInputMemory(executor, inputIndex, operandTem.len… variable
818 ASSERT_NE(nullptr, inputMemory);
819 …T_EQ(OH_NN_SUCCESS, OH_NNExecutor_SetInputWithMemory(executor, inputIndex, &operand, inputMemory));
821 …ASSERT_EQ(EOK, memcpy_s(inputMemory->data, operandTem.length, static_cast<void*>(operandTem.data),…
823 OH_NNExecutor_DestroyInputMemory(executor, inputIndex, &inputMemory);
824 ASSERT_EQ(nullptr, inputMemory);
862 …OH_NN_Memory *inputMemory = OH_NNExecutor_AllocateInputMemory(executor, inputIndex, operandTem.len… variable
863 ASSERT_NE(nullptr, inputMemory);
864 …T_EQ(OH_NN_SUCCESS, OH_NNExecutor_SetInputWithMemory(executor, inputIndex, &operand, inputMemory));
865 …ASSERT_EQ(EOK, memcpy_s(inputMemory->data, operandTem.length, static_cast<void*>(operandTem.data),…
[all …]
DExecutorTest.cpp1133 …OH_NN_Memory *inputMemory = OH_NNExecutor_AllocateInputMemory(executor, inputIndex, operandTem.len… variable
1134 ASSERT_NE(nullptr, inputMemory);
1136 …T_EQ(OH_NN_SUCCESS, OH_NNExecutor_SetInputWithMemory(executor, inputIndex, &operand, inputMemory));
1138 …ASSERT_EQ(EOK, memcpy_s(inputMemory->data, operandTem.length, static_cast<void*>(operandTem.data),…
1139 OHNNMemory[inputIndex] = inputMemory;
/test/xts/acts/ai/neural_network_runtime/v2_0/interface/src/
DMemoryTest.cpp817 …OH_NN_Memory *inputMemory = OH_NNExecutor_AllocateInputMemory(executor, inputIndex, operandTem.len… variable
818 ASSERT_NE(nullptr, inputMemory);
819 …T_EQ(OH_NN_SUCCESS, OH_NNExecutor_SetInputWithMemory(executor, inputIndex, &operand, inputMemory));
821 …ASSERT_EQ(EOK, memcpy_s(inputMemory->data, operandTem.length, static_cast<void*>(operandTem.data),…
823 OH_NNExecutor_DestroyInputMemory(executor, inputIndex, &inputMemory);
824 ASSERT_EQ(nullptr, inputMemory);
862 …OH_NN_Memory *inputMemory = OH_NNExecutor_AllocateInputMemory(executor, inputIndex, operandTem.len… variable
863 ASSERT_NE(nullptr, inputMemory);
864 …T_EQ(OH_NN_SUCCESS, OH_NNExecutor_SetInputWithMemory(executor, inputIndex, &operand, inputMemory));
865 …ASSERT_EQ(EOK, memcpy_s(inputMemory->data, operandTem.length, static_cast<void*>(operandTem.data),…
[all …]
DExecutorTest.cpp1238 …OH_NN_Memory *inputMemory = OH_NNExecutor_AllocateInputMemory(executor, inputIndex, operandTem.len… variable
1239 ASSERT_NE(nullptr, inputMemory);
1241 …T_EQ(OH_NN_SUCCESS, OH_NNExecutor_SetInputWithMemory(executor, inputIndex, &operand, inputMemory));
1243 …ASSERT_EQ(EOK, memcpy_s(inputMemory->data, operandTem.length, static_cast<void*>(operandTem.data),…
1244 OHNNMemory[inputIndex] = inputMemory;
/test/xts/acts/ai/neural_network_runtime/v1_0/common/
Dnnrt_utils.cpp274 OH_NN_Memory *inputMemory = OH_NNExecutor_AllocateInputMemory(executor, inputIndex, in ExecutorWithMemory() local
276 ret = OH_NNExecutor_SetInputWithMemory(executor, inputIndex, &operand, inputMemory); in ExecutorWithMemory()
281 …memcpy_s(inputMemory->data, operandTem.length, static_cast<void*>(operandTem.data), operandTem.len… in ExecutorWithMemory()
282 OHNNMemory[inputIndex] = inputMemory; in ExecutorWithMemory()
/test/xts/acts/ai/neural_network_runtime/v2_0/common/
Dnnrt_utils.cpp274 OH_NN_Memory *inputMemory = OH_NNExecutor_AllocateInputMemory(executor, inputIndex, in ExecutorWithMemory() local
276 ret = OH_NNExecutor_SetInputWithMemory(executor, inputIndex, &operand, inputMemory); in ExecutorWithMemory()
281 …memcpy_s(inputMemory->data, operandTem.length, static_cast<void*>(operandTem.data), operandTem.len… in ExecutorWithMemory()
282 OHNNMemory[inputIndex] = inputMemory; in ExecutorWithMemory()
/test/xts/acts/ai/nnrtndk/entry/src/main/cpp/
Dnnrtndk.cpp1295 …OH_NN_Memory *inputMemory = OH_NNExecutor_AllocateInputMemory(executor, PARAM_0, operandTem.length… in OHNNExecutorAllocateInputMemoryOne() local
1296 NAPI_ASSERT(env, inputMemory != nullptr, "OH_NNExecutor_AllocateInputMemory Error"); in OHNNExecutorAllocateInputMemoryOne()
1298 OH_NNExecutor_DestroyInputMemory(executor, PARAM_0, &inputMemory); in OHNNExecutorAllocateInputMemoryOne()
1312 OH_NN_Memory *inputMemory = OH_NNExecutor_AllocateInputMemory(nullptr, PARAM_0, PARAM_0); in OHNNExecutorAllocateInputMemoryTwo() local
1313 if (inputMemory == nullptr) { in OHNNExecutorAllocateInputMemoryTwo()
1356 …OH_NN_Memory *inputMemory = OH_NNExecutor_AllocateInputMemory(executor, PARAM_0, operandTem.length… in OHNNExecutorAllocateOutputMemoryOne() local
1357 NAPI_ASSERT(env, inputMemory != nullptr, "OH_NNExecutor_AllocateInputMemory Error"); in OHNNExecutorAllocateOutputMemoryOne()
1375 OH_NN_Memory *inputMemory = OH_NNExecutor_AllocateOutputMemory(nullptr, PARAM_0, PARAM_0); in OHNNExecutorAllocateOutputMemoryTwo() local
1376 if (inputMemory == nullptr) { in OHNNExecutorAllocateOutputMemoryTwo()
1419 …OH_NN_Memory *inputMemory = OH_NNExecutor_AllocateInputMemory(executor, PARAM_0, operandTem.length… in OHNNExecutorDestroyInputMemory() local
[all …]