Lines Matching refs:argv
157 bool getBooleanArg(int argc, char* argv[], int argIndex, bool defaultValue) { in getBooleanArg() argument
159 std::string argAsString(argv[argIndex]); in getBooleanArg()
166 int getIntArg(int argc, char* argv[], int argIndex, int defaultValue) { in getIntArg() argument
168 return std::atoi(argv[argIndex]); in getIntArg()
174 int main(int argc, char* argv[]) { in main() argument
177 argc, argv[0]); in main()
181 const char* modelFileName = argv[kArgModelPath]; in main()
182 const char* inputDataFileName = argv[kArgInputDataPath]; in main()
183 const char* testName = argv[kArgTestName]; in main()
185 argc > kArgNnApiDeviceName ? argv[kArgNnApiDeviceName] : ""}; in main()
186 int numProcesses = getIntArg(argc, argv, kArgProcessCount, 0); in main()
187 int numThreads = getIntArg(argc, argv, kArgThreadCount, 0); in main()
188 int durationSeconds = getIntArg(argc, argv, kArgDurationSeconds, 0); in main()
190 getBooleanArg(argc, argv, kArgJustCompileModel, false); in main()
192 std::istringstream inputShapeStream(argv[kArgInputShape]); in main()
197 int inputElementSize = getIntArg(argc, argv, kArgInputElementSize, 0); in main()
198 int processFailureRate = getIntArg(argc, argv, kArgProcessFailureRatePercent, 0); in main()
201 bool mmapModel = getBooleanArg(argc, argv, kArgMmapModel, true); in main()
234 modelFileName, argv[kArgInputShape], inputElementSize, numProcesses, in main()