/packages/modules/NeuralNetworks/runtime/test/ |
D | TestNeuralNetworksWrapper.h | 369 int result = ANeuralNetworksExecution_create(compilation->getHandle(), &mExecution); in Execution() 375 ~Execution() { ANeuralNetworksExecution_free(mExecution); } in ~Execution() 389 ANeuralNetworksExecution_free(mExecution); 392 mExecution = other.mExecution; 393 other.mExecution = nullptr; 401 ANeuralNetworksExecution_setInput(mExecution, index, type, buffer, length)); 414 mExecution, index, type, memory->get(), offset, length)); 420 ANeuralNetworksExecution_setOutput(mExecution, index, type, buffer, length)); 432 mExecution, index, type, memory->get(), offset, length)); 436 return static_cast<Result>(ANeuralNetworksExecution_setLoopTimeout(mExecution, duration)); in setLoopTimeout() [all …]
|
D | TestValidation.cpp | 221 ASSERT_EQ(ANeuralNetworksExecution_create(mCompilation, &mExecution), in SetUp() 225 ANeuralNetworksExecution_free(mExecution); in TearDown() 228 ANeuralNetworksExecution* mExecution = nullptr; member in __anon4fcf96bc0111::ValidationTestExecution 289 ASSERT_EQ(ANeuralNetworksExecution_create(mCompilation, &mExecution), in SetUp() 313 ANeuralNetworksExecution_free(mExecution); in TearDown() 398 ANeuralNetworksExecution* mExecution = nullptr; member in __anon4fcf96bc0111::ValidationTestExecutionDeviceMemory 1607 EXPECT_EQ(ANeuralNetworksExecution_setInput(mExecution, 0, nullptr, nullptr, sizeof(float)), in TEST_F() 1611 EXPECT_EQ(ANeuralNetworksExecution_setInput(mExecution, 0, nullptr, buffer, 20), in TEST_F() 1615 EXPECT_EQ(ANeuralNetworksExecution_setInput(mExecution, 999, nullptr, buffer, sizeof(float)), in TEST_F() 1619 EXPECT_EQ(ANeuralNetworksExecution_setInput(mExecution, -1, nullptr, buffer, sizeof(float)), in TEST_F() [all …]
|
D | TestIntrospectionControl.cpp | 116 if (mExecution) { in TearDown() 117 ANeuralNetworksExecution_free(mExecution); in TearDown() 189 EXPECT_EQ(ANeuralNetworksExecution_create(mCompilation, &mExecution), in prepareForExecution() 194 EXPECT_EQ(ANeuralNetworksExecution_setMeasureTiming(mExecution, true), in prepareForExecution() 202 ANeuralNetworksExecution* mExecution = nullptr; member in __anon26104a230111::IntrospectionControlTest 253 EXPECT_EQ(ANeuralNetworksExecution_setInput(mExecution, 0, nullptr, input1, sizeof(input1)), in TEST_F() 255 EXPECT_EQ(ANeuralNetworksExecution_setInput(mExecution, 1, nullptr, input2, sizeof(input2)), in TEST_F() 257 EXPECT_EQ(ANeuralNetworksExecution_setOutput(mExecution, 0, nullptr, output, sizeof(output)), in TEST_F() 259 EXPECT_EQ(ANeuralNetworksExecution_setMeasureTiming(mExecution, true), in TEST_F() 262 EXPECT_EQ(ANeuralNetworksExecution_startCompute(mExecution, &mEvent), ANEURALNETWORKS_NO_ERROR); in TEST_F() [all …]
|
D | TestGpuNnapi.cpp | 887 mExecution = std::make_unique<test_wrapper::Execution>(&mCompilation); in runInternal() 888 ASSERT_EQ(mExecution->setInputFromMemory(/*index=*/0, &mInputMemory, /*offset=*/0, in runInternal() 891 ASSERT_EQ(mExecution->setOutputFromMemory(/*index=*/0, &mOutputMemory, /*offset=*/0, in runInternal() 908 mExecution->startComputeWithDependencies(dependencies, /*infinite timeout*/ 0, &finished); in runInternal() 922 std::unique_ptr<test_wrapper::Execution> mExecution; member in android::nn::__anon29d919730111::NnapiExecutor
|
/packages/modules/NeuralNetworks/shim_and_sl/include/ |
D | SupportLibraryWrapper.h | 491 &mExecution); in Execution() 498 if (mExecution) { in ~Execution() 499 mNnApi->getFL5()->ANeuralNetworksExecution_free(mExecution); in ~Execution() 515 if (mExecution != nullptr) { 516 mNnApi->getFL5()->ANeuralNetworksExecution_free(mExecution); 520 mExecution = other.mExecution; 522 other.mExecution = nullptr; 530 mExecution, index, type, buffer, length)); 543 mExecution, index, type, memory->get(), offset, length)); 549 mExecution, index, type, buffer, length)); [all …]
|
/packages/modules/NeuralNetworks/runtime/test/fibonacci_extension/ |
D | FibonacciExtensionTest.cpp | 83 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::__anonfde367b50111::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/runtime/include/ |
D | NeuralNetworksWrapper.h | 598 NNAPI_CALL(ANeuralNetworksExecution_create(compilation->getHandle(), &mExecution)); 605 if (mExecution) { 606 NNAPI_CALL(ANeuralNetworksExecution_free(mExecution)); 622 if (mExecution) { 623 NNAPI_CALL(ANeuralNetworksExecution_free(mExecution)); 625 mExecution = other.mExecution; 626 other.mExecution = nullptr; 634 ANeuralNetworksExecution_setInput(mExecution, index, type, buffer, length))); 640 mExecution, index, type, memory->get(), offset, length))); 646 ANeuralNetworksExecution_setOutput(mExecution, index, type, buffer, length))); [all …]
|
/packages/modules/NeuralNetworks/shim_and_sl/ |
D | ShimPreparedModel.cpp | 200 mExecution(std::move(execution)), in ShimFencedExecutionCallback() 214 auto result = mExecution->getDuration(Duration::ON_HARDWARE, &duration); in getExecutionInfo() 221 result = mExecution->getDuration(Duration::IN_DRIVER, &duration); in getExecutionInfo() 228 result = mExecution->getDuration(Duration::FENCED_ON_HARDWARE, &duration); in getExecutionInfo() 234 result = mExecution->getDuration(Duration::FENCED_IN_DRIVER, &duration); in getExecutionInfo() 251 std::shared_ptr<::android::nn::sl_wrapper::Execution> mExecution; member in aidl::android::hardware::neuralnetworks::ShimFencedExecutionCallback 556 std::shared_ptr<::android::nn::sl_wrapper::Execution> mExecution; member in aidl::android::hardware::neuralnetworks::ShimExecution 590 mExecution(std::move(execution)), in ShimExecution() 611 return executeSynchronouslyInternal(mExecution, kMeasureTiming, kNumberOfOutputs, in executeSynchronously() 632 return executeFencedInternal(mNnapi, mExecution, kRequestMemoryPools, waitFor, durationNs, in executeFenced()
|
/packages/modules/NeuralNetworks/runtime/ |
D | ExecutionBuilder.h | 455 std::shared_ptr<RuntimeExecution> mExecution; variable
|
D | ExecutionBuilder.cpp | 1492 if (mExecution == nullptr) { in getReusableExecution() 1503 mExecution = std::move(execution); in getReusableExecution() 1505 return {ANEURALNETWORKS_NO_ERROR, mExecution}; in getReusableExecution()
|