Home
last modified time | relevance | path

Searched refs:Compilation (Results 1 – 25 of 37) sorted by relevance

12

/packages/modules/NeuralNetworks/runtime/test/
DTestNeuralNetworksWrapper.h248 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 …]
DTestGenerated.cpp68 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 …]
DSupportLibraryTestGenerated.cpp66 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 …]
DTestTrivialModel.cpp119 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()
DTestMemoryDomain.cpp192 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()
DTestControlFlow.cpp28 using test_wrapper::Compilation;
90 Compilation compilation(&model); in TEST_F()
DTestMemory.cpp27 using WrapperCompilation = ::android::nn::test_wrapper::Compilation;
DTestFailingDriver.cpp36 using WrapperCompilation = test_wrapper::Compilation;
/packages/modules/NeuralNetworks/runtime/include/
DNeuralNetworksWrapper.h448 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/
DSupportLibraryWrapper.h345 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 …]
DShimPreparedModel.h35 ::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/
Domr1.txt6 …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 …
Dunittest.txt6 …Initialization Preparation Compilation I/O Compute Results Ex. total …
21 …Initialization Preparation Compilation I/O Compute Results Ex. total …
Dhdrnet.txt6 …Initialization Preparation Compilation I/O Compute Results Ex. total …
Dcpu.txt6 …Initialization Preparation Compilation I/O Compute Results Ex. total …
Dold.txt6 …Initialization Preparation Compilation I/O Compute Results Ex. total …
/packages/modules/NeuralNetworks/runtime/test/android_fuzzing/
DFuzzTest.cpp95 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/
Dcontract-between-code-and-parser.txt115 … 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/
DTestRandomGraph.cpp255 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/
DMultinomialTest.cpp61 Compilation compilation(&model_); in Invoke()
DEmbeddingLookupTest.cpp97 Compilation compilation(&model_); in Invoke()
DLSHProjectionTest.cpp101 Compilation compilation(&model_); in Invoke()
DHashtableLookupTest.cpp112 Compilation compilation(&model_); in Invoke()
DRNNTest.cpp197 Compilation compilation(&model_); in Invoke()
DSVDFTest.cpp241 Compilation compilation(&model_); in Invoke()

12