1. 18 Sep, 2020 1 commit
  2. 17 Sep, 2020 1 commit
    • pfeatherstone's avatar
      vectorstream updates: added seekoff and seekpos (#2179) · d4fe74b5
      pfeatherstone authored
      
      
      * [DLIB] added seekpos and seekoff functions. These are necessary for functions in iostream base class to work properly. e.g. seekg. Note that in seekoff, you do NOT want to check the validity of read_pos after it has been updated. dlib::vectorstream and std::iostream work together to set EOF and/or badbit. Doing something like seekg(10000) should not throw even if the underlying buffer has 2 bytes. You should check if EOF is set and possibly call clear(). We have removed seekg from dlib::vectorstream as this adds confusion. Now std::iostream::seekg is called which somewhere down the callstack will call seekpos and/or seekoff. So there should be no diverging functionality between calling seekg on dlib::vectorstream& or std::iostream& when there is a cast.
      
      * [DLIB] vectorstream unit test is updated to run identical tests on dlib::vectorstream& and std::iostream&
      
      * [DLIB] only support read pointers and delete copy and move semantics
      
      * [DLIB] explicit tests for seekg() in different directions
      
      * [DLIB]  - no need to delete the move constructor and move assign operator. This is implicitly done by deleting the copy constructor and copy assign operator.
      
      * [DLIB]  - remove leftover comments. no need
      		- use more idiomatic notation
      Co-authored-by: default avatarpf <pf@pf-ubuntu-dev>
      d4fe74b5
  3. 13 Sep, 2020 2 commits
  4. 12 Sep, 2020 1 commit
  5. 08 Sep, 2020 1 commit
  6. 06 Sep, 2020 4 commits
  7. 05 Sep, 2020 2 commits
    • Davis King's avatar
      Made the DNN layer visiting routines more convenient. · afe19fcb
      Davis King authored
      Now the user doesn't have to supply a visitor capable of visiting all
      layers, but instead just the ones they are interested in.  Also added
      visit_computational_layers() and visit_computational_layers_range()
      since those capture a very common use case more concisely than
      visit_layers().  That is, users generally want to mess with the
      computational layers specifically as those are the stateful layers.
      afe19fcb
    • Davis King's avatar
      Added call_if_valid() · 7dcc7b4e
      Davis King authored
      7dcc7b4e
  8. 03 Sep, 2020 4 commits
  9. 01 Sep, 2020 2 commits
  10. 29 Aug, 2020 2 commits
  11. 24 Aug, 2020 2 commits
  12. 20 Aug, 2020 1 commit
  13. 19 Aug, 2020 3 commits
  14. 17 Aug, 2020 1 commit
  15. 13 Aug, 2020 2 commits
  16. 08 Aug, 2020 3 commits
  17. 07 Aug, 2020 3 commits
  18. 05 Aug, 2020 2 commits
  19. 02 Aug, 2020 1 commit
  20. 01 Aug, 2020 2 commits