Home
last modified time | relevance | path

Searched refs:SetOutput (Results 1 - 9 of 9) sorted by relevance

/foundation/ai/neural_network_runtime/test/unittest/components/v2_0/executor/
H A Dexecutor_test.cpp446 * @tc.desc: Verify that the SetOutput function returns a successful message.
460 OH_NN_ReturnCode ret = executorTest.SetOutput(m_index, buffer, length); in HWTEST_F()
466 * @tc.desc: Verify that the SetOutput function returns a failed message with out-of-range index.
479 OH_NN_ReturnCode ret = executorTest.SetOutput(m_index, buffer, length); in HWTEST_F()
485 * @tc.desc: Verify that the SetOutput function returns a failed message with invalid length.
497 OH_NN_ReturnCode ret = executorTest.SetOutput(m_index, buffer, length); in HWTEST_F()
503 * @tc.desc: Verify that the SetOutput function returns a failed message with allocating buffer is failed.
518 OH_NN_ReturnCode ret = executorTest.SetOutput(m_index, buffer, length); in HWTEST_F()
524 * @tc.desc: Verify that the SetOutput function returns a successful message.
542 OH_NN_ReturnCode ret = executorTest.SetOutput(m_inde in HWTEST_F()
[all...]
/foundation/ai/neural_network_runtime/test/unittest/components/v1_0/executor/
H A Dexecutor_test.cpp446 * @tc.desc: Verify that the SetOutput function returns a successful message.
460 OH_NN_ReturnCode ret = executorTest.SetOutput(m_index, buffer, length); in HWTEST_F()
466 * @tc.desc: Verify that the SetOutput function returns a failed message with out-of-range index.
479 OH_NN_ReturnCode ret = executorTest.SetOutput(m_index, buffer, length); in HWTEST_F()
485 * @tc.desc: Verify that the SetOutput function returns a failed message with invalid length.
497 OH_NN_ReturnCode ret = executorTest.SetOutput(m_index, buffer, length); in HWTEST_F()
503 * @tc.desc: Verify that the SetOutput function returns a failed message with allocating buffer is failed.
518 OH_NN_ReturnCode ret = executorTest.SetOutput(m_index, buffer, length); in HWTEST_F()
524 * @tc.desc: Verify that the SetOutput function returns a successful message.
542 OH_NN_ReturnCode ret = executorTest.SetOutput(m_inde in HWTEST_F()
[all...]
/foundation/ai/neural_network_runtime/test/system_test/
H A Dend_to_end_test.cpp166 ASSERT_EQ(OH_NN_SUCCESS, SetOutput(0, (void*)outputBuffer, ADDEND_DATA_LENGTH)); in HWTEST_F()
290 ASSERT_EQ(OH_NN_SUCCESS, SetOutput(0, (void*)outputBuffer, ADDEND_DATA_LENGTH)); in HWTEST_F()
345 ASSERT_EQ(OH_NN_SUCCESS, SetOutput(0, (void*)outputBuffer, ADDEND_DATA_LENGTH)); in HWTEST_F()
417 ASSERT_EQ(OH_NN_SUCCESS, SetOutput(0, (void*)outputBuffer, ADDEND_DATA_LENGTH)); in HWTEST_F()
542 ASSERT_EQ(OH_NN_SUCCESS, SetOutput(0, (void*)outputBuffer, ADDEND_DATA_LENGTH)); in HWTEST_F()
605 ASSERT_EQ(OH_NN_SUCCESS, SetOutput(0, (void*)outputBuffer, ADDEND_DATA_LENGTH)); in HWTEST_F()
/foundation/ai/neural_network_runtime/test/system_test/common/
H A Dnnrt_test.h64 virtual OH_NN_ReturnCode SetOutput(uint32_t index, void* buffer, size_t length);
H A Dnnrt_test.cpp146 OH_NN_ReturnCode NNRtTest::SetOutput(uint32_t index, void* buffer, size_t length) in SetOutput() function in OHOS::NeuralNetworkRuntime::SystemTest::NNRtTest
/foundation/ai/neural_network_runtime/frameworks/native/neural_network_runtime/
H A Dneural_network_runtime_compat.cpp86 return executorImpl->SetOutput(outputIndex, dataBuffer, length); in OH_NNExecutor_SetOutput()
H A Dnnexecutor.h66 OH_NN_ReturnCode SetOutput(uint32_t index, void* buffer, size_t length);
H A Dnnexecutor.cpp726 OH_NN_ReturnCode NNExecutor::SetOutput(uint32_t index, void* buffer, size_t length) in SetOutput() function in OHOS::NeuralNetworkRuntime::NNExecutor
729 LOGE("SetOutput failed, output index is out of range."); in SetOutput()
733 LOGE("NNExecutor::SetOutput failed, tensor desc of output %{public}u is nullptr.", index); in SetOutput()
744 LOGE("SetOutput failed, the given buffer length is too small to store the output tensor data."); in SetOutput()
773 LOGE("SetOutput failed, failed to build nntensor from desc."); in SetOutput()
780 LOGE("SetOutput failed, allocating output device buffer failed."); in SetOutput()
1052 // Copy inner device buffer to user buffer if using SetOutput() in Run()
/foundation/ai/neural_network_runtime/test/unittest/components/nn_executor/
H A Dnn_executor_test.cpp1404 LOGE("SetOutput nnexecutortest_setoutput_001"); in HWTEST_F()
1416 OH_NN_ReturnCode ret = nnExecutor->SetOutput(m_index, buffer, length); in HWTEST_F()
1427 LOGE("SetOutput nnexecutortest_setoutput_002"); in HWTEST_F()
1444 OH_NN_ReturnCode ret = nnExecutor->SetOutput(m_index, buffer, length); in HWTEST_F()
1455 LOGE("SetOutput nnexecutortest_setoutput_003"); in HWTEST_F()
1479 OH_NN_ReturnCode ret = nnExecutor->SetOutput(m_index, buffer, length); in HWTEST_F()
2120 nnExecutor->SetOutput(m_index, buffer, length); in HWTEST_F()
2155 nnExecutor->SetOutput(m_index, buffer, length); in HWTEST_F()
2192 nnExecutor->SetOutput(m_index, buffer, length); in HWTEST_F()

Completed in 17 milliseconds