Home
last modified time | relevance | path

Searched refs:Execution (Results 1 – 25 of 41) sorted by relevance

12

/packages/modules/NeuralNetworks/runtime/test/
DTestMain.cpp54 static int test(bool useCpuOnly, Execution::ComputeMode computeMode) { in test()
70 Execution::setComputeMode(computeMode); in test()
74 case Execution::ComputeMode::SYNC: in test()
76 case Execution::ComputeMode::ASYNC: in test()
78 case Execution::ComputeMode::BURST: in test()
80 case Execution::ComputeMode::FENCED: in test()
127 int n = test(/*useCpuOnly=*/false, Execution::ComputeMode::ASYNC) | in main()
128 test(/*useCpuOnly=*/false, Execution::ComputeMode::SYNC) | in main()
129 test(/*useCpuOnly=*/true, Execution::ComputeMode::ASYNC) | in main()
130 test(/*useCpuOnly=*/true, Execution::ComputeMode::SYNC); in main()
[all …]
DTestNeuralNetworksWrapper.h364 class Execution {
366 Execution(const Compilation* compilation) : mCompilation(compilation->getHandle()) { in Execution() function
373 ~Execution() { ANeuralNetworksExecution_free(mExecution); } in ~Execution()
378 Execution(const Execution&) = delete;
379 Execution& operator=(const Execution&) = delete;
384 Execution(Execution&& other) { *this = std::move(other); } in Execution() function
385 Execution& operator=(Execution&& other) {
DSupportLibraryTestGenerated.cpp71 Execution* execution, Execution::ComputeMode computeMode,
92 Execution::ComputeMode mComputeMode = Execution::getComputeMode();
244 void computeWithPtrs(const TestModel& testModel, Execution* execution, in computeWithPtrs()
245 Execution::ComputeMode computeMode, Result* result, in computeWithPtrs()
284 const TestModel& testModel, Execution* execution, in computeWithDeviceMemories()
285 Execution::ComputeMode computeMode, Result* result, in computeWithDeviceMemories()
350 Execution execution(mNnApi.get(), &compilation); in executeWithCompilation()
554 mComputeMode = Execution::ComputeMode::SYNC; in TEST_P()
560 mComputeMode = Execution::ComputeMode::BURST; in TEST_P()
586 mComputeMode = Execution::ComputeMode::FENCED; in TEST_P()
DTestTrivialModel.cpp121 Execution execution(&compilation); in TEST_F()
158 Execution execution(&compilation); in testAddTwoWithHardwareBufferInput()
210 Execution execution2(&compilation2); in TEST_F()
221 Execution execution3(&compilation3); in TEST_F()
240 Execution execution1(&compilation); in TEST_F()
251 Execution execution2(&compilation); in TEST_F()
293 Execution execution(&compilation); in TEST_F()
322 Execution execution(&compilation); in TEST_F()
DTestNeuralNetworksWrapper.cpp23 Execution::ComputeMode Execution::mComputeMode = Execution::ComputeMode::SYNC;
DTestGenerated.cpp89 Execution::ComputeMode mComputeMode = Execution::getComputeMode();
179 const TestModel& testModel, Execution* execution, in createRequestWithDeviceMemories()
246 Execution execution(&compilation); in executeInternal()
453 mComputeMode = Execution::ComputeMode::SYNC; in TEST_P()
458 mComputeMode = Execution::ComputeMode::ASYNC; in TEST_P()
463 mComputeMode = Execution::ComputeMode::BURST; in TEST_P()
489 mComputeMode = Execution::ComputeMode::FENCED; in TEST_P()
DTestUnknownDimensions.cpp80 std::vector<Execution::ComputeMode> computeModes = {
81 Execution::ComputeMode::SYNC,
82 Execution::ComputeMode::FENCED};
89 Execution::ComputeMode computeMode);
170 Execution::ComputeMode computeMode) { in TestOne()
248 Execution execution(&compilation); in TestOne()
DTestControlFlow.cpp29 using test_wrapper::Execution;
95 Execution execution(&compilation); in TEST_F()
DGeneratedTestUtils.h101 void createRequest(const test_helper::TestModel& testModel, test_wrapper::Execution* execution,
/packages/modules/NeuralNetworks/runtime/include/
DNeuralNetworksWrapper.h577 class Execution {
580 Execution(const NnApiSupportLibrary* nnapi, const Compilation* compilation) : mNnApi(nnapi) { function
582 Execution(const Compilation* compilation) {
591 ~Execution() {
600 Execution(const Execution&) = delete;
601 Execution& operator=(const Execution&) = delete;
606 Execution(Execution&& other) { *this = std::move(other); } function
607 Execution& operator=(Execution&& other) {
/packages/modules/NeuralNetworks/shim_and_sl/include/
DSupportLibraryWrapper.h473 class Execution {
475 Execution(const NnApiSupportLibrary* nnapi, const Compilation* compilation) in Execution() function
483 ~Execution() { in ~Execution()
492 Execution(const Execution&) = delete;
493 Execution& operator=(const Execution&) = delete;
498 Execution(Execution&& other) { *this = std::move(other); } in Execution() function
499 Execution& operator=(Execution&& other) {
DShimPreparedModel.h66 ::android::nn::sl_wrapper::Execution* execution,
/packages/modules/NeuralNetworks/tools/systrace_parser/parser/test/
Domr1.txt4 … summary (self-times, ms wall-clock) Execution
19 … summary (self-times, ms wall-clock) Execution
34 … summary (self-times, ms wall-clock) Execution
49 … summary (self-times, ms wall-clock) Execution
64 … summary (self-times, ms wall-clock) Execution
Dunittest.txt4 … summary (self-times, ms wall-clock) Execution
19 … summary (self-times, ms wall-clock) Execution
Dhdrnet.txt4 … summary (self-times, ms wall-clock) Execution
Dcpu.txt4 … summary (self-times, ms wall-clock) Execution
Dold.txt4 … summary (self-times, ms wall-clock) Execution
/packages/modules/NeuralNetworks/shim_and_sl/
DSupportLibraryWrapper.cpp23 Execution::ComputeMode Execution::mComputeMode = Execution::ComputeMode::SYNC;
DShimPreparedModel.cpp46 ::android::nn::sl_wrapper::Execution* execution, in parseInputs()
151 ::android::nn::sl_wrapper::Execution execution, Event e, in ShimFencedExecutionCallback()
208 ::android::nn::sl_wrapper::Execution mExecution;
223 auto execution = ::android::nn::sl_wrapper::Execution(mNnapi.get(), &mCompilation); in executeFenced()
277 std::make_unique<::android::nn::sl_wrapper::Execution>(mNnapi.get(), &mCompilation); in executeSynchronously()
/packages/modules/NeuralNetworks/tools/systrace_parser/
Dcontract-between-code-and-parser.txt12 - Execution is exposed as an asynchronous event from the runtime. Time taken
84 … t2: t_m_w:E|T1 total time in Phase Execution
87 … Runtime, Phase Execution
98 …UTION, t1: t_m_w:B|T1|[NN_LR_PE]funcR4 Runtime, Phase Execution
/packages/modules/NeuralNetworks/runtime/test/android_fuzzing/
DFuzzTest.cpp103 std::optional<Execution> CreateExecution(const Compilation& compilation, in CreateExecution()
105 Execution execution(&compilation); in CreateExecution()
/packages/modules/NeuralNetworks/common/operations/
DQuantizedLSTMTest.cpp94 Execution execution(&compilation); in invoke()
226 Result setInputTensor(Execution* execution, int tensor, const std::vector<T>& data) { in setInputTensor()
230 Result setOutputTensor(Execution* execution, int tensor, std::vector<T>* data) { in setOutputTensor()
DMultinomialTest.cpp63 Execution execution(&compilation); in Invoke()
DEmbeddingLookupTest.cpp99 Execution execution(&compilation); in Invoke()
/packages/modules/NeuralNetworks/runtime/test/fuzzing/
DTestRandomGraph.cpp260 test_wrapper::Execution execution(&compilation); in computeGoldenResults()
320 test_wrapper::Execution execution(&compilation); in computeAndVerifyResultsForDevice()
356 test_wrapper::Execution execution(&compilation); in computeAndVerifyResults()

12