/test/xts/acts/ai/neural_network_runtime/v2_0/common/ |
H A D | nnrt_utils.cpp | 286 OH_NN_Memory *outputMemory = OH_NNExecutor_AllocateOutputMemory(executor, outputIndex, in ExecutorWithMemory() local 288 ret = OH_NNExecutor_SetOutputWithMemory(executor, outputIndex, outputMemory); in ExecutorWithMemory() 298 OHNNMemory[inputIndex + outputIndex] = outputMemory; in ExecutorWithMemory()
|
/test/xts/acts/ai/neural_network_runtime/v1_0/common/ |
H A D | nnrt_utils.cpp | 286 OH_NN_Memory *outputMemory = OH_NNExecutor_AllocateOutputMemory(executor, outputIndex, in ExecutorWithMemory() local 288 ret = OH_NNExecutor_SetOutputWithMemory(executor, outputIndex, outputMemory); in ExecutorWithMemory() 298 OHNNMemory[inputIndex + outputIndex] = outputMemory; in ExecutorWithMemory()
|
/test/xts/acts/ai/neural_network_runtime/v1_0/interface/src/ |
H A D | MemoryTest.cpp | 827 OH_NN_Memory *outputMemory = OH_NNExecutor_AllocateOutputMemory(executor, outputIndex, operandTem.length); in HWTEST_F() local 828 ASSERT_NE(nullptr, outputMemory); in HWTEST_F() 829 ASSERT_EQ(OH_NN_SUCCESS, OH_NNExecutor_SetOutputWithMemory(executor, outputIndex, outputMemory)); in HWTEST_F() 830 OH_NNExecutor_DestroyOutputMemory(executor, outputIndex, &outputMemory); in HWTEST_F() 831 ASSERT_EQ(nullptr, outputMemory); in HWTEST_F()
|
H A D | ExecutorTest.cpp | 1180 OH_NN_Memory *outputMemory; in HWTEST_F() local 1196 outputMemory = OH_NNExecutor_AllocateOutputMemory(executor, outputIndex, operandTem.length); in HWTEST_F() 1197 ASSERT_NE(nullptr, outputMemory); in HWTEST_F() 1199 OH_NNExecutor_SetOutputWithMemory(executor, outputIndex, outputMemory)); in HWTEST_F() 1207 EXPECT_TRUE(CheckOutput(static_cast<float*>(const_cast<void*>(outputMemory->data)), in HWTEST_F() 1210 OH_NNExecutor_DestroyOutputMemory(executor, 0, &outputMemory); in HWTEST_F() 1211 ASSERT_EQ(outputMemory, nullptr); in HWTEST_F()
|
/test/xts/acts/ai/neural_network_runtime/v2_0/interface/src/ |
H A D | MemoryTest.cpp | 827 OH_NN_Memory *outputMemory = OH_NNExecutor_AllocateOutputMemory(executor, outputIndex, operandTem.length); in HWTEST_F() local 828 ASSERT_NE(nullptr, outputMemory); in HWTEST_F() 829 ASSERT_EQ(OH_NN_SUCCESS, OH_NNExecutor_SetOutputWithMemory(executor, outputIndex, outputMemory)); in HWTEST_F() 830 OH_NNExecutor_DestroyOutputMemory(executor, outputIndex, &outputMemory); in HWTEST_F() 831 ASSERT_EQ(nullptr, outputMemory); in HWTEST_F()
|
H A D | ExecutorTest.cpp | 1285 OH_NN_Memory *outputMemory; in HWTEST_F() local 1301 outputMemory = OH_NNExecutor_AllocateOutputMemory(executor, outputIndex, operandTem.length); in HWTEST_F() 1302 ASSERT_NE(nullptr, outputMemory); in HWTEST_F() 1304 OH_NNExecutor_SetOutputWithMemory(executor, outputIndex, outputMemory)); in HWTEST_F() 1312 EXPECT_TRUE(CheckOutput(static_cast<float*>(const_cast<void*>(outputMemory->data)), in HWTEST_F() 1315 OH_NNExecutor_DestroyOutputMemory(executor, 0, &outputMemory); in HWTEST_F() 1316 ASSERT_EQ(outputMemory, nullptr); in HWTEST_F()
|
/test/xts/acts/ai/nnrtndk/entry/src/main/cpp/ |
H A D | nnrtndk.cpp | 1358 OH_NN_Memory *outputMemory = OH_NNExecutor_AllocateOutputMemory(executor, PARAM_0, operandTem.length); in OHNNExecutorAllocateOutputMemoryOne() local 1359 NAPI_ASSERT(env, outputMemory != nullptr, "OH_NNExecutor_AllocateOutputMemory Error"); in OHNNExecutorAllocateOutputMemoryOne() 1361 OH_NNExecutor_DestroyOutputMemory(executor, PARAM_0, &outputMemory); in OHNNExecutorAllocateOutputMemoryOne() 1470 OH_NN_Memory *outputMemory = OH_NNExecutor_AllocateOutputMemory(executor, PARAM_0, operandTem.length); in OHNNExecutorDestroyOutputMemory() local 1471 OH_NNExecutor_DestroyOutputMemory(executor, PARAM_0, &outputMemory); in OHNNExecutorDestroyOutputMemory() 1472 NAPI_ASSERT(env, outputMemory == nullptr, "OH_NNExecutor_DestroyOutputMemory Error"); in OHNNExecutorDestroyOutputMemory() 1588 OH_NN_Memory *outputMemory = OH_NNExecutor_AllocateOutputMemory(executor, PARAM_0, operandTem.length); in OHNNExecutorSetOutputWithMemoryOne() local 1589 NAPI_ASSERT(env, outputMemory != nullptr, "OH_NNExecutor_AllocateOutputMemory Error"); in OHNNExecutorSetOutputWithMemoryOne() 1590 OH_NN_ReturnCode setOutputMempry_ret = OH_NNExecutor_SetOutputWithMemory(executor, PARAM_0, outputMemory); in OHNNExecutorSetOutputWithMemoryOne()
|