Lines Matching refs:std

68   std::string modelFileName(path);  in canReadInputFile()
69 std::ifstream fstream(modelFileName); in canReadInputFile()
70 std::stringstream readBuffer; in canReadInputFile()
75 bool readInputData(const char* inputDataFileName, std::vector<int> input_shape, in readInputData()
77 std::vector<InferenceInOutSequence>* result) { in readInputData()
79 std::for_each( in readInputData()
84 std::ifstream dataFile; in readInputData()
90 std::function<bool(uint8_t*, size_t)> failToGenerateData = in readInputData()
93 std::unique_ptr<uint8_t[]> dataBuffer = in readInputData()
94 std::make_unique<uint8_t[]>(inputDataSizeBytes); in readInputData()
108 const std::vector<InferenceInOutSequence>& data, in runModel()
109 int durationSeconds, const std::string& nnApiDeviceName, in runModel()
112 std::time_t startTime = std::time(nullptr); in runModel()
113 while (std::difftime(std::time(nullptr), startTime) < durationSeconds) { in runModel()
115 std::unique_ptr<BenchmarkModel> model(BenchmarkModel::create( in runModel()
137 std::unique_ptr<BenchmarkModel> model(BenchmarkModel::create( in runModel()
149 std::vector<InferenceResult> result; in runModel()
152 return model->benchmark(data, std::numeric_limits<int>::max(), in runModel()
159 std::string argAsString(argv[argIndex]); in getBooleanArg()
168 return std::atoi(argv[argIndex]); in getIntArg()
184 std::string nnApiDeviceName{ in main()
191 std::vector<int> inputShape; in main()
192 std::istringstream inputShapeStream(argv[kArgInputShape]); in main()
193 std::string currSizeToken; in main()
194 while (std::getline(inputShapeStream, currSizeToken, ',')) { in main()
195 inputShape.push_back(std::stoi(currSizeToken)); in main()
211 std::vector<InferenceInOutSequence> inputData; in main()
241 std::vector<pid_t> children; in main()
277 std::thread killer = std::thread([killAfter]() { in main()
286 std::vector<std::thread> threads; in main()
289 threads.push_back(std::thread([&]() { in main()
294 std::for_each(threads.begin(), threads.end(), in main()
295 [](std::thread& t) { t.join(); }); in main()