Home
last modified time | relevance | path

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

12

/packages/modules/NeuralNetworks/runtime/test/
DTestNeuralNetworksWrapper.h250 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 …]
DTestGenerated.cpp71 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 …]
DSupportLibraryTestGenerated.cpp76 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 …]
DTestTrivialModel.cpp124 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()
DTestMemoryDomain.cpp199 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()
DTestControlFlow.cpp28 using test_wrapper::Compilation;
90 Compilation compilation(&model); in TEST_F()
DTestTelemetry.cpp26 using android::nn::test_wrapper::Compilation;
65 Compilation compilation(&modelAdd2); in TEST_F()
DTestMemory.cpp32 using WrapperCompilation = ::android::nn::test_wrapper::Compilation;
DTestCompatibilityLayer.cpp85 Compilation compilation(&model); in execute()
/packages/modules/NeuralNetworks/runtime/include/
DNeuralNetworksWrapper.h461 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/
DSupportLibraryWrapper.h347 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 …]
DShimPreparedModel.h36 ::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/
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.cpp28 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/
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/common/cpu_operations/
DLSHProjectionTest.cpp101 Compilation compilation(&model_); in Invoke()
DMultinomialTest.cpp66 Compilation compilation(&model_); in Invoke()
DEmbeddingLookupTest.cpp98 Compilation compilation(&model_); in Invoke()
DHashtableLookupTest.cpp113 Compilation compilation(&model_); in Invoke()
DRNNTest.cpp197 Compilation compilation(&model_); in Invoke()
/packages/modules/NeuralNetworks/runtime/test/fuzzing/
DTestRandomGraph.cpp259 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()

12