/foundation/ai/neural_network_runtime/test/unittest/components/v2_0/executor/ |
H A D | executor_test.cpp | 446 * @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 D | executor_test.cpp | 446 * @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 D | end_to_end_test.cpp | 166 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 D | nnrt_test.h | 64 virtual OH_NN_ReturnCode SetOutput(uint32_t index, void* buffer, size_t length);
|
H A D | nnrt_test.cpp | 146 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 D | neural_network_runtime_compat.cpp | 86 return executorImpl->SetOutput(outputIndex, dataBuffer, length); in OH_NNExecutor_SetOutput()
|
H A D | nnexecutor.h | 66 OH_NN_ReturnCode SetOutput(uint32_t index, void* buffer, size_t length);
|
H A D | nnexecutor.cpp | 726 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 D | nn_executor_test.cpp | 1404 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()
|