/packages/modules/NeuralNetworks/runtime/test/ |
D | TestNeuralNetworksWrapper.h | 248 class Compilation { 252 static std::pair<Result, Compilation> createForDevice(const Model* model, in createForDevice() 256 static std::pair<Result, Compilation> createForDevices( in createForDevices() 262 return {result, Compilation(compilation)}; in createForDevices() 265 Compilation(const Model* model) { in Compilation() function 272 Compilation() {} in Compilation() function 274 ~Compilation() { ANeuralNetworksCompilation_free(mCompilation); } in ~Compilation() 279 Compilation(const Compilation&) = delete; 280 Compilation& operator=(const Compilation&) = delete; 285 Compilation(Compilation&& other) { *this = std::move(other); } in Compilation() function [all …]
|
D | TestGenerated.cpp | 68 std::optional<Compilation> compileModel(const Model& model); 69 void executeInternal(const Compilation& compilation, const TestModel& testModel, 71 void executeWithCompilation(const Compilation& compilation, const TestModel& testModel); 125 std::optional<Compilation> GeneratedTests::compileModel(const Model& model) { in compileModel() 132 Compilation compilation1(&model); in compileModel() 135 Compilation compilation2(&model); in compileModel() 140 Compilation compilation(&model); in compileModel() 152 static ANeuralNetworksMemory* createDeviceMemoryForInput(const Compilation& compilation, in createDeviceMemoryForInput() 165 static ANeuralNetworksMemory* createDeviceMemoryForOutput(const Compilation& compilation, in createDeviceMemoryForOutput() 178 static void createRequestWithDeviceMemories(const Compilation& compilation, in createRequestWithDeviceMemories() [all …]
|
D | SupportLibraryTestGenerated.cpp | 66 ANeuralNetworksMemory* createDeviceMemoryForInput(const Compilation& compilation, 68 ANeuralNetworksMemory* createDeviceMemoryForOutput(const Compilation& compilation, 70 void computeWithDeviceMemories(const Compilation& compilation, const TestModel& testModel, 74 std::optional<Compilation> compileModel(const Model& model, ANeuralNetworksDevice* device); 75 void executeWithCompilation(const Compilation& compilation, const TestModel& testModel); 153 std::optional<Compilation> GeneratedTests::compileModel(const Model& model, in compileModel() 202 auto resultCompilation1 = Compilation::createForDevice(mNnApi.get(), &model, device); in compileModel() 215 auto resultCompilation2 = Compilation::createForDevice(mNnApi.get(), &model, device); in compileModel() 230 auto resultCompilation = Compilation::createForDevice(mNnApi.get(), &model, device); in compileModel() 254 ANeuralNetworksMemory* GeneratedTests::createDeviceMemoryForInput(const Compilation& compilation, in createDeviceMemoryForInput() [all …]
|
D | TestTrivialModel.cpp | 119 Compilation compilation(&modelAdd2); in TEST_F() 156 Compilation compilation(&modelAdd2); in testAddTwoWithHardwareBufferInput() 208 Compilation compilation2(&modelAdd3); in TEST_F() 219 Compilation compilation3(&modelAdd3); in TEST_F() 232 Compilation compilation(&modelAdd3); in TEST_F() 291 Compilation compilation(&modelBroadcastAdd2); in TEST_F() 320 Compilation compilation(&modelBroadcastMul2); in TEST_F()
|
D | TestMemoryDomain.cpp | 192 test_wrapper::Compilation createCompilation(const std::vector<std::string>& deviceNames) { in createCompilation() 193 test_wrapper::Compilation compilation; in createCompilation() 211 test_wrapper::Compilation::createForDevices(&mModel, devices); in createCompilation() 214 compilation = test_wrapper::Compilation(&mModel); in createCompilation() 221 const test_wrapper::Compilation& compilation, const std::vector<uint32_t>& inputIndexes, in allocateDeviceMemory() 272 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 | TestMemory.cpp | 27 using WrapperCompilation = ::android::nn::test_wrapper::Compilation;
|
D | TestFailingDriver.cpp | 36 using WrapperCompilation = test_wrapper::Compilation;
|
/packages/modules/NeuralNetworks/runtime/include/ |
D | NeuralNetworksWrapper.h | 448 class Compilation { 453 static std::pair<Result, Compilation> createForDevice(const NnApiSupportLibrary* nnapi, 458 static std::pair<Result, Compilation> createForDevices( 466 return {result, Compilation(nnapi, compilation)}; 469 Compilation(const Model* model) { 478 ~Compilation() { NNAPI_CALL(ANeuralNetworksCompilation_free(mCompilation)); } 483 Compilation(const Compilation&) = delete; 484 Compilation& operator=(const Compilation&) = delete; 489 Compilation(Compilation&& other) { *this = std::move(other); } function 490 Compilation& operator=(Compilation&& other) { [all …]
|
/packages/modules/NeuralNetworks/shim_and_sl/include/ |
D | SupportLibraryWrapper.h | 345 class Compilation { 349 static std::pair<Result, Compilation> createForDevice(const NnApiSupportLibrary* nnapi, in createForDevice() 354 static std::pair<Result, Compilation> createForDevices( in createForDevices() 362 return {result, Compilation(nnapi, compilation)}; in createForDevices() 365 ~Compilation() { mNnApi->ANeuralNetworksCompilation_free(mCompilation); } in ~Compilation() 370 Compilation(const Compilation&) = delete; 371 Compilation& operator=(const Compilation&) = delete; 376 Compilation(Compilation&& other) { *this = std::move(other); } in Compilation() function 377 Compilation& operator=(Compilation&& other) { 466 Compilation(const NnApiSupportLibrary* nnapi, ANeuralNetworksCompilation* compilation) in Compilation() function [all …]
|
D | ShimPreparedModel.h | 35 ::android::nn::sl_wrapper::Compilation 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/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 | 95 std::optional<Compilation> CreateCompilation(const Model& model) { in CreateCompilation() 96 Compilation compilation(&model); in CreateCompilation() 103 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/runtime/test/fuzzing/ |
D | TestRandomGraph.cpp | 255 auto [result, compilation] = test_wrapper::Compilation::createForDevice(&model, refDevice); in computeGoldenResults() 307 auto [result, compilation] = test_wrapper::Compilation::createForDevice(model, device); in computeAndVerifyResultsForDevice() 352 test_wrapper::Compilation compilation(model); in computeAndVerifyResults()
|
/packages/modules/NeuralNetworks/common/operations/ |
D | MultinomialTest.cpp | 61 Compilation compilation(&model_); in Invoke()
|
D | EmbeddingLookupTest.cpp | 97 Compilation compilation(&model_); in Invoke()
|
D | LSHProjectionTest.cpp | 101 Compilation compilation(&model_); in Invoke()
|
D | HashtableLookupTest.cpp | 112 Compilation compilation(&model_); in Invoke()
|
D | RNNTest.cpp | 197 Compilation compilation(&model_); in Invoke()
|
D | SVDFTest.cpp | 241 Compilation compilation(&model_); in Invoke()
|