• Davis King's avatar
    Changed the trainer threading code to use dlib::thread_pool instead of · d019e9cd
    Davis King authored
    std::async() since std::async creates new threads with each invocation, which
    in turn causes objects with thread_local storage duration to be reconstructed
    each time.  This is problematic because CUDA context objects for cublas and
    cudnn get reconstructed over and over, slowing things down and generally using
    more resources than should be used.
    d019e9cd
Name
Last commit
Last update
dlib Loading commit data...
docs Loading commit data...
examples Loading commit data...
python_examples Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
CMakeLists.txt Loading commit data...
MANIFEST.in Loading commit data...
README.txt Loading commit data...
setup.py Loading commit data...