/test/mlts/benchmark/src/com/android/nn/crashtest/app/ |
D | NNMemoryMappedModelCompilationTest.java | 60 private final String mAcceleratorName; field in NNMemoryMappedModelCompilationTest 67 mAcceleratorName = acceleratorName; in NNMemoryMappedModelCompilationTest() 102 … AcceleratorSpecificTestSupport.findTestModelRunningOnAccelerator(activity, mAcceleratorName); in testDriverDoesNotFailWithParallelThreads() 103 assertTrue("No model available to be run on accelerator " + mAcceleratorName, in testDriverDoesNotFailWithParallelThreads() 108 mAcceleratorName, modelForLivenessTest.get()); in testDriverDoesNotFailWithParallelThreads() 127 intent.putExtra(NNParallelTestActivity.EXTRA_ACCELERATOR_NAME, mAcceleratorName); in compileSupportedModelsMemoryMappedOnNThreadsFor()
|
D | NNMultipleProcessTest.java | 56 protected final String mAcceleratorName; field in NNMultipleProcessTest 71 mAcceleratorName = acceleratorName; in NNMultipleProcessTest() 86 getInstrumentation().getTargetContext(), mAcceleratorName); in findModelForLivenessTest() 97 assertTrue("No model available to be run on accelerator " + mAcceleratorName, in testDriverDoesNotFailWithParallelWorkload() 101 new DriverLivenessChecker(activity, mAcceleratorName, modelForLivenessTest.get()); in testDriverDoesNotFailWithParallelWorkload()
|
D | NNClientEarlyTerminationTest.java | 59 private final String mAcceleratorName; field in NNClientEarlyTerminationTest 66 mAcceleratorName = acceleratorName; in NNClientEarlyTerminationTest() 99 … AcceleratorSpecificTestSupport.findTestModelRunningOnAccelerator(activity, mAcceleratorName); in testDriverDoesNotFailWithParallelThreads() 100 assertTrue("No model available to be run on accelerator " + mAcceleratorName, in testDriverDoesNotFailWithParallelThreads() 104 mAcceleratorName, modelForLivenessTest.get()); in testDriverDoesNotFailWithParallelThreads() 141 intent.putExtra(NNParallelTestActivity.EXTRA_ACCELERATOR_NAME, mAcceleratorName); in compileSupportedModelsOnNThreadsFor()
|
D | NNRandomGraphTest.java | 53 protected final String mAcceleratorName; field in NNRandomGraphTest 87 mAcceleratorName = acceleratorName; in NNRandomGraphTest() 98 mModelCount, mAcceleratorName, mDuration, mTestName.getMethodName())); in setUp() 104 getInstrumentation().getTargetContext(), mAcceleratorName); in findModelForLivenessTest()
|
D | NNPerformanceDegradationTest.java | 56 mAcceleratorName = acceleratorName; in NNPerformanceDegradationTest() 68 private final String mAcceleratorName; field in NNPerformanceDegradationTest 96 mAcceleratorName, in setUp() local
|
D | NNParallelInferenceTest.java | 56 private final String mAcceleratorName; field in NNParallelInferenceTest 65 mAcceleratorName = acceleratorName; in NNParallelInferenceTest() 76 mAcceleratorName)); in setUp()
|
D | NNMultipleProcessModelLoadTest.java | 56 mProcessCount, mThreadCount, mDuration, mAcceleratorName, in getRunModelsInMultipleProcessesConfigIntent() local
|
D | NNMultipleProcessInferenceTest.java | 48 mAcceleratorName, /*justCompileModel=*/false, in getRunModelsInMultipleProcessesConfigIntent() local
|
/test/mlts/benchmark/src/com/android/nn/benchmark/app/ |
D | NNCrystalBallTest.java | 56 if (useNnapi && mAcceleratorName != null) { in test() 57 Log.i(NNBenchmark.TAG, "Using accelerator " + mAcceleratorName); in test() 58 setNnApiAcceleratorName(mAcceleratorName); in test()
|
D | NNScoringTest.java | 70 if (useNnapi && mAcceleratorName != null) { in test() 71 Log.i(NNBenchmark.TAG, "Using accelerator " + mAcceleratorName); in test() 72 setNnApiAcceleratorName(mAcceleratorName); in test()
|
D | BenchmarkTestBase.java | 65 protected final String mAcceleratorName; field in BenchmarkTestBase 90 mAcceleratorName = acceleratorName; in BenchmarkTestBase() 121 return Processor.isTestModelSupportedByAccelerator(mActivity, mModel, mAcceleratorName); in isModelSupported() 125 mModel.mModelName, mAcceleratorName), delegationFailure); in isModelSupported() 134 if (mAcceleratorName != null) { in prepareTest() 136 mActivity.setNnApiAcceleratorName(mAcceleratorName); in prepareTest()
|
/test/mlts/benchmark/src/com/android/nn/crashtest/core/test/ |
D | PerformanceDegradationTest.java | 98 private String mAcceleratorName; 110 mAcceleratorName = configParams.getStringExtra(ACCELERATOR_NAME); in init() 122 mAcceleratorName); in call() 174 () -> new ModelCompiler(start, mContext, mAcceleratorName, in testDegradationForModels() 214 mTestName, mAcceleratorName, mThreadCount, performanceDegradation, in testDegradationForModels() 231 benchmarkProcessor.setNnApiAcceleratorName(mAcceleratorName); in modelPerformanceCollector()
|
D | RunModelsInParallel.java | 65 private String mAcceleratorName; field in RunModelsInParallel 103 mAcceleratorName = configParams.getStringExtra(ACCELERATOR_NAME); in init() 104 mIgnoreUnsupportedModels = mAcceleratorName != null && configParams.getBooleanExtra( in init() 148 result.setNnApiAcceleratorName(mAcceleratorName); in createSubTestRunner()
|
/test/mlts/benchmark/src/com/android/nn/benchmark/core/ |
D | Processor.java | 62 private String mAcceleratorName; field in Processor 89 mAcceleratorName = null; in Processor() 122 mAcceleratorName = acceleratorName; in setNnApiAcceleratorName() 219 tb.setNNApiDeviceName(mAcceleratorName); in changeTest() 380 testModel.mTestName, mAcceleratorName)); in benchmarkAllModels() 384 testModel.mTestName, mAcceleratorName), e); in benchmarkAllModels()
|
/test/mlts/benchmark/crashtest/src/com/android/nn/crashtest/ |
D | MainActivity.java | 61 private final AtomicReference<String> mAcceleratorName = new AtomicReference<>(null); field in MainActivity 123 mAcceleratorName.set(position == 0 ? null : acceleratorNames.get(position)); in onCreate() 125 mModelsAdapter.addAll(modelsForAccelerator(mAcceleratorName.get())); in onCreate() 275 final String acceleratorName = mAcceleratorName.get(); in startInferenceTest()
|