/packages/modules/NeuralNetworks/runtime/test/ |
D | TestNeuralNetworksWrapper.h | 250 class Compilation { 254 static std::pair<Result, Compilation> createForDevice(const Model* model, in createForDevice() 258 static std::pair<Result, Compilation> createForDevices( in createForDevices() 264 return {result, Compilation(compilation)}; in createForDevices() 267 Compilation(const Model* model) { in Compilation() function 274 Compilation() {} in Compilation() function 276 ~Compilation() { ANeuralNetworksCompilation_free(mCompilation); } in ~Compilation() 281 Compilation(const Compilation&) = delete; 282 Compilation& operator=(const Compilation&) = delete; 287 Compilation(Compilation&& other) { *this = std::move(other); } in Compilation() function [all …]
|
D | TestGenerated.cpp | 71 std::optional<Compilation> compileModel(const Model& model); 72 void executeInternal(const Compilation& compilation, const TestModel& testModel, 74 void executeWithCompilation(const Compilation& compilation, const TestModel& testModel); 128 std::optional<Compilation> GeneratedTests::compileModel(const Model& model) { in compileModel() 135 Compilation compilation1(&model); in compileModel() 138 Compilation compilation2(&model); in compileModel() 143 Compilation compilation(&model); in compileModel() 155 static ANeuralNetworksMemory* createDeviceMemoryForInput(const Compilation& compilation, in createDeviceMemoryForInput() 168 static ANeuralNetworksMemory* createDeviceMemoryForOutput(const Compilation& compilation, in createDeviceMemoryForOutput() 181 static void createRequestWithDeviceMemories(const Compilation& compilation, in createRequestWithDeviceMemories() [all …]
|
D | SupportLibraryTestGenerated.cpp | 76 ANeuralNetworksMemory* createDeviceMemoryForInput(const Compilation& compilation, 78 ANeuralNetworksMemory* createDeviceMemoryForOutput(const Compilation& compilation, 81 const Compilation& compilation, const TestModel& testModel, Execution* execution, 84 std::optional<Compilation> compileModel(const Model& model, ANeuralNetworksDevice* device); 85 void executeWithCompilation(const Compilation& compilation, const TestModel& testModel); 162 std::optional<Compilation> GeneratedTests::compileModel(const Model& model, in compileModel() 211 auto resultCompilation1 = Compilation::createForDevice(mNnApi.get(), &model, device); in compileModel() 224 auto resultCompilation2 = Compilation::createForDevice(mNnApi.get(), &model, device); in compileModel() 239 auto resultCompilation = Compilation::createForDevice(mNnApi.get(), &model, device); in compileModel() 263 ANeuralNetworksMemory* GeneratedTests::createDeviceMemoryForInput(const Compilation& compilation, in createDeviceMemoryForInput() [all …]
|
D | TestTrivialModel.cpp | 124 Compilation compilation(&modelAdd2); in TEST_F() 166 Compilation compilation(&modelAdd2); in testAddTwoWithHardwareBufferInput() 220 Compilation compilation2(&modelAdd3); in TEST_F() 231 Compilation compilation3(&modelAdd3); in TEST_F() 244 Compilation compilation(&modelAdd3); in TEST_F() 303 Compilation compilation(&modelBroadcastAdd2); in TEST_F() 332 Compilation compilation(&modelBroadcastMul2); in TEST_F()
|
D | TestMemoryDomain.cpp | 199 test_wrapper::Compilation createCompilation(const std::vector<std::string>& deviceNames) { in createCompilation() 200 test_wrapper::Compilation compilation; in createCompilation() 218 test_wrapper::Compilation::createForDevices(&mModel, devices); in createCompilation() 221 compilation = test_wrapper::Compilation(&mModel); in createCompilation() 228 const test_wrapper::Compilation& compilation, const std::vector<uint32_t>& inputIndexes, in allocateDeviceMemory() 279 test_wrapper::Compilation createCompilation(const std::vector<std::string>& deviceNames) { in createCompilation()
|
D | TestControlFlow.cpp | 28 using test_wrapper::Compilation; 90 Compilation compilation(&model); in TEST_F()
|
D | TestTelemetry.cpp | 26 using android::nn::test_wrapper::Compilation; 65 Compilation compilation(&modelAdd2); in TEST_F()
|
D | TestMemory.cpp | 32 using WrapperCompilation = ::android::nn::test_wrapper::Compilation;
|
D | TestCompatibilityLayer.cpp | 85 Compilation compilation(&model); in execute()
|
/packages/modules/NeuralNetworks/runtime/include/ |
D | NeuralNetworksWrapper.h | 461 class Compilation { 466 static std::pair<Result, Compilation> createForDevice(const NnApiSupportLibrary* nnapi, 471 static std::pair<Result, Compilation> createForDevices( 479 return {result, Compilation(nnapi, compilation)}; 482 Compilation(const Model* model) { 491 ~Compilation() { NNAPI_CALL(ANeuralNetworksCompilation_free(mCompilation)); } 496 Compilation(const Compilation&) = delete; 497 Compilation& operator=(const Compilation&) = delete; 502 Compilation(Compilation&& other) { *this = std::move(other); } function 503 Compilation& operator=(Compilation&& other) { [all …]
|
/packages/modules/NeuralNetworks/shim_and_sl/include/ |
D | SupportLibraryWrapper.h | 347 class Compilation { 351 static std::pair<Result, Compilation> createForDevice(const NnApiSupportLibrary* nnapi, in createForDevice() 356 static std::pair<Result, Compilation> createForDevices( in createForDevices() 364 return {result, Compilation(nnapi, compilation)}; in createForDevices() 367 ~Compilation() { mNnApi->getFL5()->ANeuralNetworksCompilation_free(mCompilation); } in ~Compilation() 372 Compilation(const Compilation&) = delete; 373 Compilation& operator=(const Compilation&) = delete; 378 Compilation(Compilation&& other) { *this = std::move(other); } in Compilation() function 379 Compilation& operator=(Compilation&& other) { 479 Compilation(const NnApiSupportLibrary* nnapi, ANeuralNetworksCompilation* compilation) in Compilation() function [all …]
|
D | ShimPreparedModel.h | 36 ::android::nn::sl_wrapper::Compilation compilation, in ShimPreparedModel() 71 const ::android::nn::sl_wrapper::Compilation& getCompilation() const { return mCompilation; } in getCompilation() 99 ::android::nn::sl_wrapper::Compilation mCompilation;
|
/packages/modules/NeuralNetworks/tools/systrace_parser/parser/test/ |
D | omr1.txt | 6 …Initialization Preparation Compilation I/O Compute Results Ex. total … 21 …Initialization Preparation Compilation I/O Compute Results Ex. total … 36 …Initialization Preparation Compilation I/O Compute Results Ex. total … 51 …Initialization Preparation Compilation I/O Compute Results Ex. total … 66 …Initialization Preparation Compilation I/O Compute Results Ex. total …
|
D | unittest.txt | 6 …Initialization Preparation Compilation I/O Compute Results Ex. total … 21 …Initialization Preparation Compilation I/O Compute Results Ex. total …
|
D | hdrnet.txt | 6 …Initialization Preparation Compilation I/O Compute Results Ex. total …
|
D | cpu.txt | 6 …Initialization Preparation Compilation I/O Compute Results Ex. total …
|
D | old.txt | 6 …Initialization Preparation Compilation I/O Compute Results Ex. total …
|
/packages/modules/NeuralNetworks/runtime/test/android_fuzzing/ |
D | FuzzTest.cpp | 28 using ::android::nn::wrapper::Compilation; 157 std::optional<Compilation> CreateCompilation(const Model& model) { in CreateCompilation() 158 Compilation compilation(&model); in CreateCompilation() 165 std::optional<Execution> CreateExecution(const Compilation& compilation, in CreateExecution()
|
/packages/modules/NeuralNetworks/tools/systrace_parser/ |
D | contract-between-code-and-parser.txt | 115 … t1: t_m_w:B|T1|[NN_LI_PI]getCapabilities Layer Runtime, Phase Compilation; see 122 …ATION, Compilation will be calcula… 137 … t1: t_m_w:B|T1|HIDL::IDevice::prepareModel_1_1::client IPC, Phase Compilation 140 …t4: t_m_w:B|T2|HIDL::IPreparedModelCallback::notify::clie Driver, Phase Compilation. This includes 153 …pareModel"); Driver, Phase Compilation.
|
/packages/modules/NeuralNetworks/common/cpu_operations/ |
D | LSHProjectionTest.cpp | 101 Compilation compilation(&model_); in Invoke()
|
D | MultinomialTest.cpp | 66 Compilation compilation(&model_); in Invoke()
|
D | EmbeddingLookupTest.cpp | 98 Compilation compilation(&model_); in Invoke()
|
D | HashtableLookupTest.cpp | 113 Compilation compilation(&model_); in Invoke()
|
D | RNNTest.cpp | 197 Compilation compilation(&model_); in Invoke()
|
/packages/modules/NeuralNetworks/runtime/test/fuzzing/ |
D | TestRandomGraph.cpp | 259 auto [result, compilation] = test_wrapper::Compilation::createForDevice(&model, refDevice); in computeGoldenResults() 311 auto [result, compilation] = test_wrapper::Compilation::createForDevice(model, device); in computeAndVerifyResultsForDevice() 356 test_wrapper::Compilation compilation(model); in computeAndVerifyResults()
|