Home
last modified time | relevance | path

Searched refs:mExecution (Results 1 – 10 of 10) sorted by relevance

/packages/modules/NeuralNetworks/runtime/test/
DTestNeuralNetworksWrapper.h367 int result = ANeuralNetworksExecution_create(compilation->getHandle(), &mExecution); in Execution()
373 ~Execution() { ANeuralNetworksExecution_free(mExecution); } in ~Execution()
387 ANeuralNetworksExecution_free(mExecution);
390 mExecution = other.mExecution;
391 other.mExecution = nullptr;
399 ANeuralNetworksExecution_setInput(mExecution, index, type, buffer, length));
412 mExecution, index, type, memory->get(), offset, length));
418 ANeuralNetworksExecution_setOutput(mExecution, index, type, buffer, length));
430 mExecution, index, type, memory->get(), offset, length));
434 return static_cast<Result>(ANeuralNetworksExecution_setLoopTimeout(mExecution, duration)); in setLoopTimeout()
[all …]
DTestValidation.cpp213 ASSERT_EQ(ANeuralNetworksExecution_create(mCompilation, &mExecution), in SetUp()
217 ANeuralNetworksExecution_free(mExecution); in TearDown()
220 ANeuralNetworksExecution* mExecution = nullptr; member in __anona1c03bcd0111::ValidationTestExecution
275 ASSERT_EQ(ANeuralNetworksExecution_create(mCompilation, &mExecution), in SetUp()
299 ANeuralNetworksExecution_free(mExecution); in TearDown()
384 ANeuralNetworksExecution* mExecution = nullptr; member in __anona1c03bcd0111::ValidationTestExecutionDeviceMemory
1579 EXPECT_EQ(ANeuralNetworksExecution_setInput(mExecution, 0, nullptr, nullptr, sizeof(float)), in TEST_F()
1583 EXPECT_EQ(ANeuralNetworksExecution_setInput(mExecution, 0, nullptr, buffer, 20), in TEST_F()
1587 EXPECT_EQ(ANeuralNetworksExecution_setInput(mExecution, 999, nullptr, buffer, sizeof(float)), in TEST_F()
1591 EXPECT_EQ(ANeuralNetworksExecution_setInput(mExecution, -1, nullptr, buffer, sizeof(float)), in TEST_F()
[all …]
DTestIntrospectionControl.cpp115 if (mExecution) { in TearDown()
116 ANeuralNetworksExecution_free(mExecution); in TearDown()
188 EXPECT_EQ(ANeuralNetworksExecution_create(mCompilation, &mExecution), in prepareForExecution()
193 EXPECT_EQ(ANeuralNetworksExecution_setMeasureTiming(mExecution, true), in prepareForExecution()
201 ANeuralNetworksExecution* mExecution = nullptr; member in __anon3ffb38740111::IntrospectionControlTest
252 EXPECT_EQ(ANeuralNetworksExecution_setInput(mExecution, 0, nullptr, input1, sizeof(input1)), in TEST_F()
254 EXPECT_EQ(ANeuralNetworksExecution_setInput(mExecution, 1, nullptr, input2, sizeof(input2)), in TEST_F()
256 EXPECT_EQ(ANeuralNetworksExecution_setOutput(mExecution, 0, nullptr, output, sizeof(output)), in TEST_F()
258 EXPECT_EQ(ANeuralNetworksExecution_setMeasureTiming(mExecution, true), in TEST_F()
261 EXPECT_EQ(ANeuralNetworksExecution_startCompute(mExecution, &mEvent), ANEURALNETWORKS_NO_ERROR); in TEST_F()
[all …]
DTestGpuNnapi.cpp878 mExecution = std::make_unique<test_wrapper::Execution>(&mCompilation); in runInternal()
879 ASSERT_EQ(mExecution->setInputFromMemory(/*index=*/0, &mInputMemory, /*offset=*/0, in runInternal()
882 ASSERT_EQ(mExecution->setOutputFromMemory(/*index=*/0, &mOutputMemory, /*offset=*/0, in runInternal()
899 mExecution->startComputeWithDependencies(dependencies, /*infinite timeout*/ 0, &finished); in runInternal()
913 std::unique_ptr<test_wrapper::Execution> mExecution; member in android::nn::__anon868b46440111::NnapiExecutor
/packages/modules/NeuralNetworks/shim_and_sl/include/
DSupportLibraryWrapper.h477 int result = mNnApi->ANeuralNetworksExecution_create(compilation->getHandle(), &mExecution); in Execution()
484 if (mExecution) { in ~Execution()
485 mNnApi->ANeuralNetworksExecution_free(mExecution); in ~Execution()
501 if (mExecution != nullptr) {
502 mNnApi->ANeuralNetworksExecution_free(mExecution);
506 mExecution = other.mExecution;
508 other.mExecution = nullptr;
516 mNnApi->ANeuralNetworksExecution_setInput(mExecution, index, type, buffer, length));
529 mExecution, index, type, memory->get(), offset, length));
535 mExecution, index, type, buffer, length));
[all …]
/packages/modules/NeuralNetworks/runtime/include/
DNeuralNetworksWrapper.h585 NNAPI_CALL(ANeuralNetworksExecution_create(compilation->getHandle(), &mExecution));
592 if (mExecution) {
593 NNAPI_CALL(ANeuralNetworksExecution_free(mExecution));
609 if (mExecution) {
610 NNAPI_CALL(ANeuralNetworksExecution_free(mExecution));
612 mExecution = other.mExecution;
613 other.mExecution = nullptr;
621 ANeuralNetworksExecution_setInput(mExecution, index, type, buffer, length)));
627 mExecution, index, type, memory->get(), offset, length)));
633 ANeuralNetworksExecution_setOutput(mExecution, index, type, buffer, length)));
[all …]
/packages/modules/NeuralNetworks/runtime/test/fibonacci_extension/
DFibonacciExtensionTest.cpp83 if (mExecution) { in TearDown()
84 ANeuralNetworksExecution_free(mExecution); in TearDown()
116 ASSERT_EQ(ANeuralNetworksExecution_create(mCompilation, &mExecution), in prepareForExecution()
124 ANeuralNetworksExecution* mExecution = nullptr; member in android::nn::__anonce7830460111::FibonacciExtensionTest
194 EXPECT_EQ(ANeuralNetworksExecution_setInput(mExecution, 0, nullptr, &input, sizeof(input)), in TEST_F()
198 EXPECT_EQ(ANeuralNetworksExecution_setOutput(mExecution, 0, nullptr, &output, sizeof(output)), in TEST_F()
201 ASSERT_EQ(ANeuralNetworksExecution_compute(mExecution), ANEURALNETWORKS_NO_ERROR); in TEST_F()
225 EXPECT_EQ(ANeuralNetworksExecution_setInput(mExecution, 0, nullptr, &input, sizeof(input)), in TEST_F()
229 EXPECT_EQ(ANeuralNetworksExecution_setOutput(mExecution, 0, nullptr, &output, sizeof(output)), in TEST_F()
232 ASSERT_EQ(ANeuralNetworksExecution_compute(mExecution), ANEURALNETWORKS_NO_ERROR); in TEST_F()
[all …]
/packages/modules/NeuralNetworks/shim_and_sl/
DShimPreparedModel.cpp155 mExecution(std::move(execution)), in ShimFencedExecutionCallback()
169 auto result = mExecution.getDuration(Duration::ON_HARDWARE, &duration); in getExecutionInfo()
176 result = mExecution.getDuration(Duration::IN_DRIVER, &duration); in getExecutionInfo()
183 result = mExecution.getDuration(Duration::FENCED_ON_HARDWARE, &duration); in getExecutionInfo()
190 result = mExecution.getDuration(Duration::FENCED_IN_DRIVER, &duration); in getExecutionInfo()
208 ::android::nn::sl_wrapper::Execution mExecution;
/packages/modules/NeuralNetworks/runtime/
DExecutionBuilder.cpp1445 if (mExecution == nullptr) { in getReusableExecution()
1455 mExecution = std::move(execution); in getReusableExecution()
1457 return {ANEURALNETWORKS_NO_ERROR, mExecution}; in getReusableExecution()
DExecutionBuilder.h433 std::shared_ptr<RuntimeExecution> mExecution; variable