Home
last modified time | relevance | path

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

/foundation/ai/neural_network_runtime/test/system_test/common/
H A Dnnrt_test.h65 virtual OH_NN_ReturnCode SetInputFromMemory(uint32_t index,
H A Dnnrt_test.cpp151 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 Dneural_network_runtime_compat.cpp211 return executorImpl->SetInputFromMemory(inputIndex, *tensor, *memory); in OH_NNExecutor_SetInputWithMemory()
H A Dnnexecutor.h65 OH_NN_ReturnCode SetInputFromMemory(uint32_t index, const OH_NN_Tensor& nnTensor, const OH_NN_Memory& memory);
H A Dnnexecutor.cpp623 * - 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 Dend_to_end_test.cpp215 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 Dexecutor_test.cpp271 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 Dexecutor_test.cpp271 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 Dnn_executor_test.cpp1303 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()

Completed in 16 milliseconds