• Davis King's avatar
    Made resizable_tensor objects not perform a reallocation if they are resized to · 88d8b7c6
    Davis King authored
    be smaller.  Instead, they now behave like std::vector in that they just change
    their nominal size but keep the same memory, only reallocating if they are
    resized to something larger than their underlying memory block.
    
    This change makes some uses of dlib faster, in particular, running networks on
    a large set of images of differing sizes will now run faster since there won't
    be any GPU reallocations, which are notoriously slow.
    88d8b7c6
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...
.travis.yml Loading commit data...
CMakeLists.txt Loading commit data...
MANIFEST.in Loading commit data...
README.md Loading commit data...
appveyor.yml Loading commit data...
setup.py Loading commit data...