Home
last modified time | relevance | path

Searched refs:nnApiDeviceName (Results 1 – 6 of 6) sorted by relevance

/test/mlts/benchmark/native/
Dmulti_process_test.cpp109 int durationSeconds, const std::string& nnApiDeviceName, in runModel() argument
119 nnApiDeviceName.empty() ? nullptr : nnApiDeviceName.c_str(), mmapModel, in runModel()
141 nnApiDeviceName.empty() ? nullptr : nnApiDeviceName.c_str(), mmapModel, in runModel()
184 std::string nnApiDeviceName{ in main() local
236 nnApiDeviceName.empty() ? "no-device" : nnApiDeviceName.c_str(), in main()
267 nnApiDeviceName.empty() ? "no-device" : nnApiDeviceName.c_str(), in main()
290 runModel(modelFileName, inputData, durationSeconds, nnApiDeviceName, in main()
/test/mlts/benchmark/jni/
Drandom_graph_test_jni.cpp522 const char* nnApiDeviceName = in Java_com_android_nn_crashtest_core_test_RandomGraphTest_createRandomGraphGenerator() local
526 std::string nnApiDeviceNameStr{nnApiDeviceName ? nnApiDeviceName : ""}; in Java_com_android_nn_crashtest_core_test_RandomGraphTest_createRandomGraphGenerator()
528 if (nnApiDeviceName) { in Java_com_android_nn_crashtest_core_test_RandomGraphTest_createRandomGraphGenerator()
529 device = findDeviceByName(nnApiDeviceName); in Java_com_android_nn_crashtest_core_test_RandomGraphTest_createRandomGraphGenerator()
531 LOG(ERROR) << ": Unable to find accelerator " << nnApiDeviceName; in Java_com_android_nn_crashtest_core_test_RandomGraphTest_createRandomGraphGenerator()
532 env->ReleaseStringUTFChars(_nnApiDeviceName, nnApiDeviceName); in Java_com_android_nn_crashtest_core_test_RandomGraphTest_createRandomGraphGenerator()
535 env->ReleaseStringUTFChars(_nnApiDeviceName, nnApiDeviceName); in Java_com_android_nn_crashtest_core_test_RandomGraphTest_createRandomGraphGenerator()
Dbenchmark_jni.cpp37 const char *nnApiDeviceName = in Java_com_android_nn_benchmark_core_NNTestBase_hasNnApiDevice() local
40 if (nnApiDeviceName != NULL) { in Java_com_android_nn_benchmark_core_NNTestBase_hasNnApiDevice()
41 std::string device_name(nnApiDeviceName); in Java_com_android_nn_benchmark_core_NNTestBase_hasNnApiDevice()
55 env->ReleaseStringUTFChars(_nnApiDeviceName, nnApiDeviceName); in Java_com_android_nn_benchmark_core_NNTestBase_hasNnApiDevice()
74 const char *nnApiDeviceName = in Java_com_android_nn_benchmark_core_NNTestBase_initModel() local
85 nnApiDeviceName, _mmapModel, nnApiCacheDir); in Java_com_android_nn_benchmark_core_NNTestBase_initModel()
88 env->ReleaseStringUTFChars(_nnApiDeviceName, nnApiDeviceName); in Java_com_android_nn_benchmark_core_NNTestBase_initModel()
/test/mlts/benchmark/src/com/android/nn/crashtest/core/test/
DRunModelsInMultipleProcesses.java68 String nnApiDeviceName, boolean justCompileModel, int clientFailureRatePercent) { in intentInitializer() argument
75 intent.putExtra(NNAPI_DEVICE_NAME, nnApiDeviceName); in intentInitializer()
DRandomGraphTest.java155 public static native long createRandomGraphGenerator(String nnApiDeviceName, int numOperations, in createRandomGraphGenerator() argument
/test/mlts/benchmark/src/com/android/nn/benchmark/core/
DNNTestBase.java56 public static native boolean hasNnApiDevice(String nnApiDeviceName); in hasNnApiDevice() argument
62 String nnApiDeviceName, in initModel() argument