Home
last modified time | relevance | path

Searched refs:mCompilation (Results 1 – 16 of 16) sorted by relevance

/packages/modules/NeuralNetworks/runtime/test/
DTestValidation.cpp194 ASSERT_EQ(ANeuralNetworksCompilation_create(mModel, &mCompilation), in SetUp()
199 ANeuralNetworksCompilation_free(mCompilation); in TearDown()
203 ANeuralNetworksCompilation* mCompilation = nullptr; member in __anona1c03bcd0111::ValidationTestCompilation
211 ASSERT_EQ(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_NO_ERROR); in SetUp()
213 ASSERT_EQ(ANeuralNetworksExecution_create(mCompilation, &mExecution), in SetUp()
228 ASSERT_EQ(ANeuralNetworksBurst_create(mCompilation, &mBurst), ANEURALNETWORKS_NO_ERROR); in SetUp()
272 ASSERT_EQ(ANeuralNetworksCompilation_create(mModel, &mCompilation), in SetUp()
274 ASSERT_EQ(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_NO_ERROR); in SetUp()
275 ASSERT_EQ(ANeuralNetworksExecution_create(mCompilation, &mExecution), in SetUp()
300 ANeuralNetworksCompilation_free(mCompilation); in TearDown()
[all …]
DTestNeuralNetworksWrapper.h266 int result = ANeuralNetworksCompilation_create(model->getHandle(), &mCompilation); in Compilation()
274 ~Compilation() { ANeuralNetworksCompilation_free(mCompilation); } in ~Compilation()
288 ANeuralNetworksCompilation_free(mCompilation);
289 mCompilation = other.mCompilation;
290 other.mCompilation = nullptr;
297 mCompilation, static_cast<int32_t>(preference))); in setPreference()
302 mCompilation, static_cast<int32_t>(priority))); in setPriority()
310 mCompilation, cacheDir.c_str(), token.data())); in setCaching()
313 Result finish() { return static_cast<Result>(ANeuralNetworksCompilation_finish(mCompilation)); } in finish()
319 mCompilation, index, alignment))); in getPreferredMemoryAlignmentForInput()
[all …]
DTestExecution.cpp615 mCompilation = reinterpret_cast<ANeuralNetworksCompilation*>(c); in TestCompilation()
645 model->getHandle(), mDevices.data(), mDevices.size(), &mCompilation); in TestIntrospectionCompilation()
664 mCompilation = TestIntrospectionCompilation(&mModel, kName); in ExecutionTestTemplate()
666 mCompilation = TestCompilation<DriverClass>(&mModel, kName, kForceErrorStatus); in ExecutionTestTemplate()
706 WrapperCompilation mCompilation; member in android::__anonefbd81f60111::ExecutionTestTemplate
758 ASSERT_EQ(mCompilation.finish(), WrapperResult::NO_ERROR); in TestWait()
762 WrapperExecution execution(&mCompilation); in TestWait()
790 WrapperExecution execution(&mCompilation); in TestWait()
822 WrapperExecution execution(&mCompilation); in TestWait()
852 WrapperExecution execution(&mCompilation); in TestWait()
DTestIntrospectionControl.cpp118 if (mCompilation) { in TearDown()
119 ANeuralNetworksCompilation_free(mCompilation); in TearDown()
183 mDevices.size(), &mCompilation); in prepareForExecution()
187 EXPECT_EQ(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_NO_ERROR); in prepareForExecution()
188 EXPECT_EQ(ANeuralNetworksExecution_create(mCompilation, &mExecution), in prepareForExecution()
202 ANeuralNetworksCompilation* mCompilation = nullptr; member in __anon3ffb38740111::IntrospectionControlTest
244 CompilationBuilder* c = reinterpret_cast<CompilationBuilder*>(mCompilation); in TEST_F()
963 ASSERT_EQ(ANeuralNetworksBurst_create(mCompilation, &burst), ANEURALNETWORKS_NO_ERROR); in TEST_P()
1432 mDevices.size(), &mCompilation), in TEST_F()
1436 EXPECT_NE(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_NO_ERROR); in TEST_F()
DTestGpuNnapi.cpp860 std::tie(result, mCompilation) = in initialize()
865 result = mCompilation.finish(); in initialize()
878 mExecution = std::make_unique<test_wrapper::Execution>(&mCompilation); in runInternal()
912 test_wrapper::Compilation mCompilation; member in android::nn::__anon868b46440111::NnapiExecutor
DTestPartitioning.cpp947 mCompilation = reinterpret_cast<ANeuralNetworksCompilation*>(c); in PartitioningCompilation()
2286 std::optional<PartitioningCompilation> mCompilation; member in __anon27781e9a0111::DynamicTemporariesTest
2342 ASSERT_TRUE(!mCompilation.has_value()); in compileModelAndComparePlan()
2357 mCompilation = PartitioningCompilation(&mModel.value(), devices); in compileModelAndComparePlan()
2358 ASSERT_EQ(mCompilation->setPartitioning(DeviceManager::kPartitioningWithoutFallback), in compileModelAndComparePlan()
2361 ASSERT_EQ(mCompilation->finish(), Result::NO_ERROR); in compileModelAndComparePlan()
2362 const ExecutionPlan& planA = mCompilation->getExecutionPlan(); in compileModelAndComparePlan()
2416 ASSERT_EQ(mCompilation->finish(), Result::OP_FAILED); in compileModelAndComparePlan()
2418 mCompilation = PartitioningCompilation(&mModel.value(), devices); in compileModelAndComparePlan()
2419 ASSERT_EQ(mCompilation->setPartitioning(DeviceManager::kPartitioningWithFallback), in compileModelAndComparePlan()
[all …]
DTestPartitioningRandom.cpp233 mCompilation = reinterpret_cast<ANeuralNetworksCompilation*>(c); in TestCompilation()
/packages/modules/NeuralNetworks/shim_and_sl/include/
DSupportLibraryWrapper.h365 ~Compilation() { mNnApi->ANeuralNetworksCompilation_free(mCompilation); } in ~Compilation()
380 mNnApi->ANeuralNetworksCompilation_free(mCompilation);
381 mCompilation = other.mCompilation;
382 other.mCompilation = nullptr;
389 mCompilation, static_cast<int32_t>(preference))); in setPreference()
394 mCompilation, static_cast<int32_t>(priority))); in setPriority()
399 mNnApi->ANeuralNetworksCompilation_setTimeout(mCompilation, durationNs)); in setTimeout()
407 mCompilation, cacheDir.c_str(), token.data())); in setCaching()
417 mCompilation, modelCacheFds.data(), modelCacheFds.size(), dataCacheFds.data(), in setCachingFromFds()
435 return static_cast<Result>(mNnApi->ANeuralNetworksCompilation_finish(mCompilation)); in finish()
[all …]
DShimPreparedModel.h41 mCompilation(std::move(compilation)), in ShimPreparedModel()
58 const ::android::nn::sl_wrapper::Compilation& getCompilation() const { return mCompilation; } in getCompilation()
72 ::android::nn::sl_wrapper::Compilation mCompilation;
/packages/modules/NeuralNetworks/runtime/test/fibonacci_extension/
DFibonacciExtensionTest.cpp86 if (mCompilation) { in TearDown()
87 ANeuralNetworksCompilation_free(mCompilation); in TearDown()
113 mDevices.size(), &mCompilation), in prepareForExecution()
115 ASSERT_EQ(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_NO_ERROR); in prepareForExecution()
116 ASSERT_EQ(ANeuralNetworksExecution_create(mCompilation, &mExecution), in prepareForExecution()
125 ANeuralNetworksCompilation* mCompilation = nullptr; member in android::nn::__anonce7830460111::FibonacciExtensionTest
252 mDevices.size(), &mCompilation), in TEST_F()
254 ASSERT_EQ(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_BAD_DATA); in TEST_F()
263 mDevices.size(), &mCompilation), in TEST_F()
265 ASSERT_EQ(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_BAD_DATA); in TEST_F()
[all …]
/packages/modules/NeuralNetworks/runtime/include/
DNeuralNetworksWrapper.h471 NNAPI_CALL(ANeuralNetworksCompilation_create(model->getHandle(), &mCompilation));
478 ~Compilation() { NNAPI_CALL(ANeuralNetworksCompilation_free(mCompilation)); }
492 NNAPI_CALL(ANeuralNetworksCompilation_free(mCompilation));
493 mCompilation = other.mCompilation;
494 other.mCompilation = nullptr;
501 mCompilation, static_cast<int32_t>(preference))));
506 mCompilation, static_cast<int32_t>(priority))));
514 mCompilation, cacheDir.c_str(), token.data())));
518 return static_cast<Result>(NNAPI_CALL(ANeuralNetworksCompilation_finish(mCompilation)));
525 mCompilation, index, alignment)));
[all …]
/packages/modules/NeuralNetworks/runtime/
DBurstBuilder.cpp34 : mCompilation(compilation), mBurstControllers(std::move(burstControllers)) {} in BurstBuilder()
46 return mCompilation; in getCompilation()
DExecutionBuilder.cpp153 : mCompilation(compilation), in ExecutionBuilder()
231 if (!memory->getValidator().validate(mCompilation, IOType::INPUT, index, type, offset, in setInputFromMemory()
312 if (!memory->getValidator().validate(mCompilation, IOType::OUTPUT, index, type, offset, in setOutputFromMemory()
340 if (!mCompilation->mExplicitDeviceList || (mCompilation->mDevices.size() != 1)) { in setMeasureTiming()
417 if (!mCompilation->mExplicitDeviceList || (mCompilation->mDevices.size() != 1)) { in setTimeoutDuration()
905 CHECK(!mCompilation->hasDynamicTemporaries()); in computeFencedInternal()
977 if (!mCompilation->mExplicitDeviceList || (mCompilation->mDevices.size() != 1)) { in computeFenced()
DExecutionBuilder.h109 const CompilationBuilder* getCompilation() const { return mCompilation; } in getCompilation()
162 const CompilationBuilder* mCompilation; variable
DBurstBuilder.h53 const CompilationBuilder* mCompilation; variable
/packages/modules/NeuralNetworks/shim_and_sl/
DShimPreparedModel.cpp223 auto execution = ::android::nn::sl_wrapper::Execution(mNnapi.get(), &mCompilation); in executeFenced()
277 std::make_unique<::android::nn::sl_wrapper::Execution>(mNnapi.get(), &mCompilation); in executeSynchronously()