Commit Graph

6036 Commits

Author SHA1 Message Date
Davis King
91150823eb Simplified example to show only the C++11 version of the code. 2016-08-30 14:58:38 -04:00
Davis King
4ee1f6644d Made thread_pool and parallel_for propagate exceptions from task threads to
calling code.
2016-08-30 14:44:46 -04:00
Davis King
5b36194513 Added overloads of the parallel for functions that use default_thread_pool() 2016-08-30 10:15:33 -04:00
Davis King
3de7ddf18a Added some comments 2016-08-29 23:34:02 -04:00
Davis King
61455d58ba Added a clone() method to the mex class interface. 2016-08-29 23:31:57 -04:00
Davis King
7f697b420f Fixed a problem where output matrices don't get assigned anything when they
are empty, leading to MATLAB complaining about output arguments to being
assigned.
2016-08-29 14:15:24 -04:00
Davis King
24b037d569 Fixed tabbing 2016-08-29 10:56:32 -04:00
Davis King
032a8bf66a merged 2016-08-29 09:47:42 -04:00
Davis King
7ca1fb1634 Added support for binding classes to MATLAB. 2016-08-29 09:46:27 -04:00
Davis King
d8a23c8706 Added pyramid_rate(), create_tiled_pyramid(), image_to_tiled_pyramid(), and
tiled_pyramid_to_image().
2016-08-28 16:56:53 -04:00
Davis King
1a739219b6 Fixed compiler warning. 2016-08-28 14:43:13 -04:00
Davis King
9eed5974dc Cleaned up assert statements a bit. 2016-08-28 13:28:14 -04:00
Davis King
bb60d061c4 Added nearest_rect() 2016-08-28 12:09:02 -04:00
Davis King
0ac2197c74 updated docs 2016-08-28 12:07:39 -04:00
Davis King
a670742273 Made the message argument of the DLIB_ASSERT and DLIB_CASSERT macros optional. 2016-08-28 12:07:27 -04:00
Davis King
3f92a5cff3 Moved impossible_labeling_error to error.h 2016-08-27 20:13:19 -04:00
Davis King
fb44c7ba78 Added box_intersection_over_union() and also renamed the class members of
test_box_overlap so they are less confusing and vague.
2016-08-27 16:38:34 -04:00
Davis King
f0dff5fc04 Added alias_tensor_const_instance 2016-08-27 09:52:18 -04:00
Davis King
7c6a800bb9 Made add_loss_layer constructor more flexible. Now you can construct
from objects that are implicitly convertible to a loss details object
just like you can for computational layers.
2016-08-27 09:23:09 -04:00
Davis King
b09ddc3ac7 Fixed a bug in memcpy() for tensors where you weren't allowed to copy
alias tensors.  Now any kind of tensors are supported.
2016-08-27 09:10:50 -04:00
Davis King
fe42f66242 Slightly adjusted some of the unit tests to avoid false failures in some
environments.
2016-08-24 15:50:24 -04:00
Davis King
7999f6daac Made test_layer() more numerically robust. 2016-08-24 15:36:01 -04:00
Davis King
6cd376c213 Updated arch list to simd instructions are dealt with correctly on more platforms. 2016-08-24 15:35:42 -04:00
Davis King
02d8ebc903 fixed typo in example 2016-08-24 06:56:35 -04:00
Davis King
08f2c26a2d merged 2016-08-23 17:01:36 -04:00
Davis King
6a4ecdcf32 Minor changes to avoid compiler warnings 2016-08-23 16:52:24 -04:00
Davis King
7b46fdb5b0 Added faq about boost.python 2016-08-23 16:51:21 -04:00
Davis King
5e0cc69591 Improved how the unit tests build all/source.cpp 2016-08-23 15:58:15 -04:00
Davis King
3ca480284b cmake cleanup 2016-08-23 15:05:55 -04:00
Davis King
64ee462995 Adjusted test to avoid false alarm 2016-08-23 06:41:19 -04:00
Davis King
dec0d93a51 Fixed rotate_image() so that it uses the generic image interface rather than
expecting an array2d like object.
2016-08-22 16:47:51 -04:00
Davis King
091d441ccb fixed compiler error 2016-08-22 15:08:20 -04:00
Davis King
4f0c2ba092 Fixed typo in network definition. 2016-08-22 14:53:26 -04:00
Davis King
ca698f63a6 Fixed compiler warnings 2016-08-22 14:53:07 -04:00
Davis King
679a6517f9 Made the thread local variables that hold the cudnn and cublas context objects
not destruct and recreate themselves when you switch devices.  Instead, they
keep a table of context objects, for each thread and device, reusing as necessary.

This prevents churn in the context objects when you are switching back and
forth between devices inside a single thread.
2016-08-22 11:36:56 -04:00
Davis King
f194bdc948 Added cuda bindings: get_device_name(), set_current_device_blocking_sync(). 2016-08-22 10:20:41 -04:00
Davis King
c7f27517e1 Added is_row_major(). Also made sum() run over the matrix in column major
order if that's the memory layout of the argument.
2016-08-22 10:11:23 -04:00
Davis King
ff6bd2ddd6 Added an assert on the size of matlab's bools. 2016-08-22 10:05:56 -04:00
Davis King
95c5e95930 Added annotation() to tensor so that you can associate any object you want
with a tensor.
2016-08-21 21:03:16 -04:00
Davis King
3a9b12424a Clarified spec 2016-08-21 20:48:50 -04:00
Davis King
031bb7d092 Added a set_image_size() for sub_image_proxy objects so that they can be
written to with assign_image().  However, you get an error if you try to
assign an image with a different size.
2016-08-21 20:46:49 -04:00
Davis King
7dc61eaf10 Added comments about thread safety requirements. 2016-08-21 19:57:18 -04:00
Davis King
32ebe06e79 Made the coordinate mapping between pyramid layers slightly more accurate. 2016-08-21 14:59:39 -04:00
Davis King
095d3e0ce1 Fixed more compiler warnings 2016-08-16 18:19:26 -04:00
Davis King
51946baa7d Fixed some compiler warnings 2016-08-16 18:15:59 -04:00
Davis King
b3e9f7afc9 Made the unit tests compile all/source.cpp. 2016-08-16 18:14:53 -04:00
Davis King
4c1e0efb04 Removed concat1 and inception1 templates to avoid user confusion. 2016-08-15 21:02:42 -04:00
Davis King
27b5375c96 merged 2016-08-15 18:27:45 -04:00
Davis King
ef4210fba5 Made the relational operators constexpr so they don't accidentally cause
compilation errors when they get pulled into the scope of template
metaprogramming expressions.
2016-08-15 18:27:06 -04:00
Davis King
104c166c83 updated makefile to give -std=c++11 flag 2016-08-15 18:08:39 -04:00