Home
last modified time | relevance | path

Searched refs:outputMemory (Results 1 - 7 of 7) sorted by relevance

/test/xts/acts/ai/neural_network_runtime/v2_0/common/
H A Dnnrt_utils.cpp286 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 Dnnrt_utils.cpp286 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 DMemoryTest.cpp827 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 DExecutorTest.cpp1180 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 DMemoryTest.cpp827 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 DExecutorTest.cpp1285 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 Dnnrtndk.cpp1358 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()

Completed in 15 milliseconds