Home
last modified time | relevance | path

Searched refs:mProcessor (Results 1 – 4 of 4) sorted by relevance

/test/mlts/benchmark/src/com/android/nn/benchmark/app/
DNNBenchmark.java51 private Processor mProcessor; field in NNBenchmark
59 mProcessor = new Processor(this, this, mTestList); in prepareInstrumentationTest()
63 mProcessor.setTfLiteBackend(useNNApi ? TfLiteBackend.NNAPI : TfLiteBackend.CPU); in setUseNNApi()
67 mProcessor.setNnApiAcceleratorName(acceleratorName); in setNnApiAcceleratorName()
71 mProcessor.setCompleteInputSet(completeInputSet); in setCompleteInputSet()
76 mProcessor.enableCompilationCachingBenchmarks( in enableCompilationCachingBenchmarks()
94 if (mProcessor != null) { in onPause()
95 mProcessor.exitWithTimeout(PROCESSOR_TERMINATION_TIMEOUT_MS); in onPause()
96 mProcessor = null; in onPause()
104 intent.putExtra(EXTRA_RESULTS_RESULTS, mProcessor.getTestResults()); in onBenchmarkFinish()
[all …]
/test/mlts/benchmark/dogfood/src/com/android/nn/dogfood/
DBenchmarkJobService.java51 private Processor mProcessor; field in BenchmarkJobService
80 mProcessor = new Processor(this, this, randomModelList()); in doBenchmark()
81 mProcessor.setTfLiteBackend(TfLiteBackend.NNAPI); in doBenchmark()
82 mProcessor.setToggleLong(true); in doBenchmark()
83 mProcessor.setMaxRunIterations(1); in doBenchmark()
84 processorRunner.submit(mProcessor); in doBenchmark()
88 mProcessor.exit(); in onBenchmarkFinish()
/test/mlts/benchmark/src/com/android/nn/crashtest/app/
DAcceleratorSpecificTestSupport.java110 final Processor mProcessor; field in DriverLivenessChecker
116 mProcessor = new Processor(context, in DriverLivenessChecker()
126 mProcessor.setTfLiteBackend(TfLiteBackend.NNAPI); in DriverLivenessChecker()
127 mProcessor.setCompleteInputSet(false); in DriverLivenessChecker()
128 mProcessor.setNnApiAcceleratorName(acceleratorName); in DriverLivenessChecker()
140 BenchmarkResult modelExecutionResult = mProcessor.getInstrumentationResult( in call()
/test/mlts/benchmark/src/com/android/nn/crashtest/core/test/
DPerformanceDegradationTest.java247 private final Processor mProcessor;
255 mProcessor = new Processor(context, mNoOpCallback, new int[0]);
256 mProcessor.setTfLiteBackend(TfLiteBackend.NNAPI);
257 mProcessor.setNnApiAcceleratorName(acceleratorName);
258 mProcessor.setRunModelCompilationOnly(true);
275 mProcessor.getInstrumentationResult(mTestModelEntry, 0, 0);