/foundation/ai/neural_network_runtime/test/system_test/common/ |
H A D | nnrt_test.h | 65 virtual OH_NN_ReturnCode SetInputFromMemory(uint32_t index,
|
H A D | nnrt_test.cpp | 151 OH_NN_ReturnCode NNRtTest::SetInputFromMemory(uint32_t index, in SetInputFromMemory() function in OHOS::NeuralNetworkRuntime::SystemTest::NNRtTest 158 LOGE("NNRtTest::SetInputFromMemory failed, passed nullptr to buffer."); in SetInputFromMemory() 163 LOGE("NNRtTest::SetInputFromMemory failed, passed nullptr to pMemory."); in SetInputFromMemory() 169 LOGE("NNRtTest::SetInputFromMemory failed, error happened when creating input memory."); in SetInputFromMemory() 178 LOGE("NNRtTest::SetInputFromMemory failed, error happened when setting input."); in SetInputFromMemory() 184 LOGE("NNRtTest::SetInputFromMemory failed, error happens when copying data to OH_NN_Memory. Error code: %d.", in SetInputFromMemory()
|
/foundation/ai/neural_network_runtime/frameworks/native/neural_network_runtime/ |
H A D | neural_network_runtime_compat.cpp | 211 return executorImpl->SetInputFromMemory(inputIndex, *tensor, *memory); in OH_NNExecutor_SetInputWithMemory()
|
H A D | nnexecutor.h | 65 OH_NN_ReturnCode SetInputFromMemory(uint32_t index, const OH_NN_Tensor& nnTensor, const OH_NN_Memory& memory);
|
H A D | nnexecutor.cpp | 623 * - The buffer held in m_inputTensors is allocated and set by CreateInputMemory() and SetInputFromMemory(). in SetInput() 643 OH_NN_ReturnCode NNExecutor::SetInputFromMemory( in SetInputFromMemory() function in OHOS::NeuralNetworkRuntime::NNExecutor 650 LOGE("SetInputFromMemory failed, Check the range of the %uth input dimension ranges failed.", index); in SetInputFromMemory() 657 LOGE("SetInputFromMemory failed, error happened when creating NNTensor."); in SetInputFromMemory() 663 LOGE("SetInputFromMemory failed, please check input index or nnTensor"); in SetInputFromMemory() 670 LOGE("SetInputFromMemory failed," in SetInputFromMemory()
|
/foundation/ai/neural_network_runtime/test/system_test/ |
H A D | end_to_end_test.cpp | 215 SetInputFromMemory(0, {3, 2, 2}, (void*)firstAddendValue.data(), ADDEND_DATA_LENGTH, &firstAddendMemory)); in HWTEST_F() 221 SetInputFromMemory(1, {3, 2, 2}, (void*)secondAddendValue.data(), ADDEND_DATA_LENGTH, &secondAddendMemory)); in HWTEST_F() 433 * @tc.desc: Test End-to-End execution mixing SetInput and SetInputFromMemory functions. 476 SetInputFromMemory(1, {3, 2, 2}, (void*)secondAddendValue.data(), ADDEND_DATA_LENGTH, &secondAddendMemory)); in HWTEST_F()
|
/foundation/ai/neural_network_runtime/test/unittest/components/v2_0/executor/ |
H A D | executor_test.cpp | 271 EXPECT_EQ(OH_NN_SUCCESS, executorTest.SetInputFromMemory(m_index, tensor, memory)); in HWTEST_F() 333 * @tc.desc: Verify that the SetInputFromMemory function returns a successful message. 348 OH_NN_ReturnCode ret = executorTest.SetInputFromMemory(m_index, tensor, memory); in HWTEST_F() 354 * @tc.desc: Verify that the SetInputFromMemory function returns a failed message with out-of-range index. 370 OH_NN_ReturnCode ret = executorTest.SetInputFromMemory(m_index, tensor, memory); in HWTEST_F() 376 * @tc.desc: Verify that the SetInputFromMemory function returns a failed message with dynamic shape. 398 OH_NN_ReturnCode ret = executorTest.SetInputFromMemory(m_index, tensor, memory); in HWTEST_F() 404 * @tc.desc: Verify that the SetInputFromMemory function returns a failed message with invalid tensor's dataType. 419 OH_NN_ReturnCode ret = executorTest.SetInputFromMemory(m_index, tensor, memory); in HWTEST_F() 440 OH_NN_ReturnCode ret = executorTest.SetInputFromMemory(m_inde in HWTEST_F() [all...] |
/foundation/ai/neural_network_runtime/test/unittest/components/v1_0/executor/ |
H A D | executor_test.cpp | 271 EXPECT_EQ(OH_NN_SUCCESS, executorTest.SetInputFromMemory(m_index, tensor, memory)); in HWTEST_F() 333 * @tc.desc: Verify that the SetInputFromMemory function returns a successful message. 348 OH_NN_ReturnCode ret = executorTest.SetInputFromMemory(m_index, tensor, memory); in HWTEST_F() 354 * @tc.desc: Verify that the SetInputFromMemory function returns a failed message with out-of-range index. 370 OH_NN_ReturnCode ret = executorTest.SetInputFromMemory(m_index, tensor, memory); in HWTEST_F() 376 * @tc.desc: Verify that the SetInputFromMemory function returns a failed message with dynamic shape. 398 OH_NN_ReturnCode ret = executorTest.SetInputFromMemory(m_index, tensor, memory); in HWTEST_F() 404 * @tc.desc: Verify that the SetInputFromMemory function returns a failed message with invalid tensor's dataType. 419 OH_NN_ReturnCode ret = executorTest.SetInputFromMemory(m_index, tensor, memory); in HWTEST_F() 440 OH_NN_ReturnCode ret = executorTest.SetInputFromMemory(m_inde in HWTEST_F() [all...] |
/foundation/ai/neural_network_runtime/test/unittest/components/nn_executor/ |
H A D | nn_executor_test.cpp | 1303 LOGE("SetInputFromMemory nnexecutortest_setinputfrommemory_001"); in HWTEST_F() 1318 OH_NN_ReturnCode ret = nnExecutor->SetInputFromMemory(m_index, tensor, memory); in HWTEST_F() 1331 LOGE("SetInputFromMemory nnexecutortest_setinputfrommemory_002"); in HWTEST_F() 1351 OH_NN_ReturnCode ret = nnExecutor->SetInputFromMemory(m_index, tensor, memory); in HWTEST_F() 1364 LOGE("SetInputFromMemory nnexecutortest_setinputfrommemory_003"); in HWTEST_F() 1391 OH_NN_ReturnCode ret = nnExecutor->SetInputFromMemory(m_index, tensor, memory); in HWTEST_F()
|