/frameworks/ml/nn/runtime/test/ |
D | TestFree.cpp | 91 ANeuralNetworksCompilation* compilation = nullptr; in TEST() local 92 ASSERT_EQ(ANeuralNetworksCompilation_create(model, &compilation), ANEURALNETWORKS_NO_ERROR); in TEST() 93 ANeuralNetworksCompilation_free(compilation); in TEST() 103 ANeuralNetworksCompilation* compilation = nullptr; in TEST() local 105 &compilation), in TEST() 107 ANeuralNetworksCompilation_free(compilation); in TEST() 115 ANeuralNetworksCompilation* compilation = nullptr; in TEST() local 116 ASSERT_EQ(ANeuralNetworksCompilation_create(model, &compilation), ANEURALNETWORKS_NO_ERROR); in TEST() 117 ASSERT_EQ(ANeuralNetworksCompilation_finish(compilation), ANEURALNETWORKS_NO_ERROR); in TEST() 120 ASSERT_EQ(ANeuralNetworksExecution_create(compilation, &execution), ANEURALNETWORKS_NO_ERROR); in TEST() [all …]
|
D | TestMemoryDomain.cpp | 187 test_wrapper::Compilation compilation; in createCompilation() local 204 std::tie(result, compilation) = in createCompilation() 208 compilation = test_wrapper::Compilation(&kModel); in createCompilation() 210 EXPECT_EQ(compilation.finish(), Result::NO_ERROR); in createCompilation() 211 return compilation; in createCompilation() 215 const test_wrapper::Compilation& compilation, const std::vector<uint32_t>& inputIndexes, in allocateDeviceMemory() argument 217 const auto* annCompilation = compilation.getHandle(); in allocateDeviceMemory() 284 auto compilation = createCompilation({"test_driver"}); in TEST_P() local 285 ASSERT_NE(compilation.getHandle(), nullptr); in TEST_P() 287 auto [n, memory] = allocateDeviceMemory(compilation, {0}, {0}); in TEST_P() [all …]
|
D | TestGenerated.cpp | 68 void executeWithCompilation(const Compilation& compilation, const TestModel& testModel); 129 Compilation compilation(&model); in compileModel() local 130 Result result = compilation.finish(); in compileModel() 137 return compilation; in compileModel() 150 static ANeuralNetworksMemory* createDeviceMemoryForInput(const Compilation& compilation, in createDeviceMemoryForInput() argument 154 EXPECT_EQ(ANeuralNetworksMemoryDesc_addInputRole(desc, compilation.getHandle(), index, 1.0f), in createDeviceMemoryForInput() 163 static ANeuralNetworksMemory* createDeviceMemoryForOutput(const Compilation& compilation, in createDeviceMemoryForOutput() argument 167 EXPECT_EQ(ANeuralNetworksMemoryDesc_addOutputRole(desc, compilation.getHandle(), index, 1.0f), in createDeviceMemoryForOutput() 177 static void computeWithDeviceMemories(const Compilation& compilation, const TestModel& testModel, in computeWithDeviceMemories() argument 199 ANeuralNetworksMemory* memory = createDeviceMemoryForInput(compilation, i); in computeWithDeviceMemories() [all …]
|
D | TestTrivialModel.cpp | 115 Compilation compilation(&modelAdd2); in TEST_F() local 116 compilation.finish(); in TEST_F() 117 Execution execution(&compilation); in TEST_F() 144 Compilation compilation(&modelAdd2); in TEST_F() local 145 compilation.finish(); in TEST_F() 146 Execution execution(&compilation); in TEST_F() 212 Compilation compilation(&modelAdd3); in TEST_F() local 213 compilation.finish(); in TEST_F() 220 Execution execution1(&compilation); in TEST_F() 231 Execution execution2(&compilation); in TEST_F() [all …]
|
D | TestFailingDriver.cpp | 145 WrapperCompilation compilation(&model); in TEST_F() local 146 ASSERT_EQ(compilation.finish(), Result::NO_ERROR); in TEST_F() 149 reinterpret_cast<CompilationBuilder*>(compilation.getHandle()); in TEST_F() 163 WrapperExecution execution(&compilation); in TEST_F() 195 WrapperCompilation compilation(&model); in TEST_F() local 196 ASSERT_EQ(compilation.finish(), Result::NO_ERROR); in TEST_F() 199 reinterpret_cast<CompilationBuilder*>(compilation.getHandle()); in TEST_F() 203 WrapperExecution execution(&compilation); in TEST_F()
|
D | TestControlFlow.cpp | 86 Compilation compilation(&model); in TEST_F() local 87 ASSERT_EQ(compilation.finish(), Result::NO_ERROR); in TEST_F() 91 Execution execution(&compilation); in TEST_F()
|
D | TestNeuralNetworksWrapper.h | 254 ANeuralNetworksCompilation* compilation = nullptr; in createForDevices() local 257 &compilation)); in createForDevices() 258 return {result, Compilation(compilation)}; in createForDevices() 315 Compilation(ANeuralNetworksCompilation* compilation) : mCompilation(compilation) {} in Compilation() argument 322 Execution(const Compilation* compilation) : mCompilation(compilation->getHandle()) { in Execution() argument 323 int result = ANeuralNetworksExecution_create(compilation->getHandle(), &mExecution); in Execution()
|
D | TestValidation.cpp | 348 void executeWithMemoryAsInput(ANeuralNetworksCompilation* compilation, in executeWithMemoryAsInput() argument 352 ASSERT_EQ(ANeuralNetworksExecution_create(compilation, &execution), in executeWithMemoryAsInput() 362 void executeWithMemoryAsOutput(ANeuralNetworksCompilation* compilation, in executeWithMemoryAsOutput() argument 366 ASSERT_EQ(ANeuralNetworksExecution_create(compilation, &execution), in executeWithMemoryAsOutput() 855 ANeuralNetworksCompilation* compilation = nullptr; in TEST_F() local 856 EXPECT_EQ(ANeuralNetworksCompilation_create(nullptr, &compilation), in TEST_F() 859 EXPECT_EQ(ANeuralNetworksCompilation_create(mModel, &compilation), ANEURALNETWORKS_BAD_STATE); in TEST_F() 870 ANeuralNetworksCompilation* compilation = nullptr; in TEST_F() local 871 EXPECT_EQ(ANeuralNetworksCompilation_createForDevices(nullptr, &device, 1, &compilation), in TEST_F() 877 EXPECT_EQ(ANeuralNetworksCompilation_createForDevices(mModel, &device, 0, &compilation), in TEST_F() [all …]
|
/frameworks/ml/nn/runtime/test/android_fuzzing/ |
D | FuzzTest.cpp | 96 Compilation compilation(&model); in CreateCompilation() local 97 if (compilation.finish() != Result::NO_ERROR) { in CreateCompilation() 100 return compilation; in CreateCompilation() 103 std::optional<Execution> CreateExecution(const Compilation& compilation, in CreateExecution() argument 105 Execution execution(&compilation); in CreateExecution() 138 auto compilation = CreateCompilation(*model); in nnapiFuzzTest() local 139 if (!compilation.has_value()) { in nnapiFuzzTest() 144 auto execution = CreateExecution(*compilation, testModel); in nnapiFuzzTest()
|
/frameworks/ml/nn/runtime/include/ |
D | NeuralNetworks.h | 6396 const ANeuralNetworksCompilation* compilation, 6442 const ANeuralNetworksCompilation* compilation, 6771 ANeuralNetworksCompilation** compilation) 6799 int ANeuralNetworksCompilation_setCaching(ANeuralNetworksCompilation* compilation, 6907 int ANeuralNetworksBurst_create(ANeuralNetworksCompilation* compilation, 7471 ANeuralNetworksCompilation** compilation) __INTRODUCED_IN(27); 7486 void ANeuralNetworksCompilation_free(ANeuralNetworksCompilation* compilation) __INTRODUCED_IN(27); 7505 int ANeuralNetworksCompilation_setPreference(ANeuralNetworksCompilation* compilation, 7531 int ANeuralNetworksCompilation_finish(ANeuralNetworksCompilation* compilation) __INTRODUCED_IN(27); 7558 int ANeuralNetworksCompilation_setPriority(ANeuralNetworksCompilation* compilation, int priority) [all …]
|
/frameworks/ml/nn/runtime/ |
D | NeuralNetworks.cpp | 753 ANeuralNetworksCompilation** compilation) { in ANeuralNetworksCompilation_createForDevices() argument 755 if (model == nullptr || devices == nullptr || compilation == nullptr) { in ANeuralNetworksCompilation_createForDevices() 796 *compilation = reinterpret_cast<ANeuralNetworksCompilation*>(c); in ANeuralNetworksCompilation_createForDevices() 844 int ANeuralNetworksBurst_create(ANeuralNetworksCompilation* compilation, in ANeuralNetworksBurst_create() argument 847 if (!compilation || !burst) { in ANeuralNetworksBurst_create() 852 CompilationBuilder* c = reinterpret_cast<CompilationBuilder*>(compilation); in ANeuralNetworksBurst_create() 919 const ANeuralNetworksCompilation* compilation, in ANeuralNetworksMemoryDesc_addInputRole() argument 922 if (!desc || !compilation) { in ANeuralNetworksMemoryDesc_addInputRole() 927 const CompilationBuilder* c = reinterpret_cast<const CompilationBuilder*>(compilation); in ANeuralNetworksMemoryDesc_addInputRole() 932 const ANeuralNetworksCompilation* compilation, in ANeuralNetworksMemoryDesc_addOutputRole() argument [all …]
|
D | BurstBuilder.cpp | 27 BurstBuilder::BurstBuilder(const CompilationBuilder* compilation, in BurstBuilder() argument 29 : mCompilation(compilation), mBurstControllers(std::move(burstControllers)) {} in BurstBuilder()
|
D | Memory.cpp | 77 bool validate(const CompilationBuilder* compilation, IOType, uint32_t, in validate() argument 80 NN_RET_CHECK(compilation != nullptr) in validate() 104 bool validate(const CompilationBuilder* compilation, IOType ioType, uint32_t index, in validate() argument 107 NN_RET_CHECK(kCompilationRoles.count({compilation, ioType, index}) > 0) in validate() 324 int MemoryBuilder::addRole(const CompilationBuilder& compilation, IOType ioType, uint32_t index, in addRole() argument 330 if (mRoles.count({&compilation, ioType, index}) > 0) { in addRole() 341 if (compilation.forEachStepRoleOfInput(index, callback) != ANEURALNETWORKS_NO_ERROR) { in addRole() 345 if (compilation.forEachStepRoleOfOutput(index, callback) != ANEURALNETWORKS_NO_ERROR) { in addRole() 350 const ModelBuilder* model = compilation.getModel(); in addRole() 390 mRoles.emplace(&compilation, ioType, index); in addRole()
|
/frameworks/ml/nn/tools/api/ |
D | NeuralNetworks.t | 370 * {@link ANeuralNetworksModel_setOperandValueFromMemory}, any compilation 372 * using such a compilation, or any execution which references this memory 413 * This includes any compilation, execution object or burst object created using 425 * <li>Create a new compilation instance by calling the 428 * <li>Set any desired properties on the compilation (for example, 431 * compilation by calling {@link ANeuralNetworksCompilation_setCaching}.</li> 432 * <li>Complete the compilation with {@link ANeuralNetworksCompilation_finish}.</li> 433 * <li>Use the compilation as many times as needed 436 * <li>Destroy the compilation with {@link ANeuralNetworksCompilation_free} 437 * once all executions using the compilation have completed.</li></ul></p> [all …]
|
/frameworks/compile/libbcc/ |
D | README.rst | 13 compilation. 30 * after each compilation, serialize the in-memory executable into a 31 cache file. Note that the compilation is triggered by a cache 49 binaries. Just-in-Time compilation are oftentimes Just-too-Late, 91 * **bccReadBC** - Set the source bitcode for compilation 93 * **bccReadModule** - Set the llvm::Module for compilation 100 just-in-time compilation or cache loading 197 2. Calls from/to a separate compilation unit: (E.g., calls to Execution
|
/frameworks/ml/nn/common/operations/ |
D | MultinomialTest.cpp | 61 Compilation compilation(&model_); in Invoke() local 62 compilation.finish(); in Invoke() 63 Execution execution(&compilation); in Invoke()
|
D | EmbeddingLookupTest.cpp | 96 Compilation compilation(&model_); in Invoke() local 97 compilation.finish(); in Invoke() 98 Execution execution(&compilation); in Invoke()
|
D | LSHProjectionTest.cpp | 101 Compilation compilation(&model_); in Invoke() local 102 compilation.finish(); in Invoke() 103 Execution execution(&compilation); in Invoke()
|
D | HashtableLookupTest.cpp | 111 Compilation compilation(&model_); in Invoke() local 112 compilation.finish(); in Invoke() 113 Execution execution(&compilation); in Invoke()
|
D | RNNTest.cpp | 196 Compilation compilation(&model_); in Invoke() local 197 compilation.finish(); in Invoke() 198 Execution execution(&compilation); in Invoke()
|
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
D | rsdebug_24.rscript | 22 // This test focuses primarily on compilation-time, not run-time. 25 // http://b/27526302 - globals of half type cannot be exported and fail compilation
|
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/ |
D | rsdebug_24.rscript | 24 // This test focuses primarily on compilation-time, not run-time. 27 // http://b/27526302 - globals of half type cannot be exported and fail compilation
|
/frameworks/layoutlib/create/.settings/ |
D | README.txt | 2 This ensure proper compilation compliance and warning/error levels.
|
/frameworks/layoutlib/bridge/.settings/ |
D | README.txt | 2 This ensure proper compilation compliance and warning/error levels.
|
/frameworks/ml/nn/runtime/test/fuzzing/ |
D | TestRandomGraph.cpp | 257 auto [result, compilation] = test_wrapper::Compilation::createForDevice(&model, refDevice); in computeGoldenResults() 259 ASSERT_EQ(compilation.finish(), Result::NO_ERROR); in computeGoldenResults() 262 test_wrapper::Execution execution(&compilation); in computeGoldenResults() 309 auto [result, compilation] = test_wrapper::Compilation::createForDevice(model, device); in computeAndVerifyResultsForDevice() 311 Result compileReturn = compilation.finish(); in computeAndVerifyResultsForDevice() 322 test_wrapper::Execution execution(&compilation); in computeAndVerifyResultsForDevice() 354 test_wrapper::Compilation compilation(model); in computeAndVerifyResults() local 355 ASSERT_EQ(compilation.finish(), Result::NO_ERROR); in computeAndVerifyResults() 358 test_wrapper::Execution execution(&compilation); in computeAndVerifyResults()
|