C++ Tensorflow, how to make session->Run() with multithread, or spend less time
How about usiung multiple threads?
std::vector<std::thread> threads;for (std::size_t i = 0; i < 10; ++i) { threads.push_back(std::thread([&]{ session->Run(); })); }for (std::size_t i = 0; i < 10; ++i) { threads[i].join();}