Commit Graph

5460 Commits

Author SHA1 Message Date
Davis King 6886042c8e Now when you make a mex file with cmake it will only try to link to the BLAS
and LAPACK that comes with MATLAB since trying to use any other BLAS or LAPACK
generally makes MATLAB unstable.
2016-02-04 09:19:13 -05:00
Davis King 36fdfe6802 Added a copy of CBLAS so we can use it when linking against a BLAS that
doesn't have it.
2016-02-04 09:07:41 -05:00
Davis King 64c7e966e1 Added a function to check if the matlab user hit ctrl+c. 2016-02-02 13:28:36 -05:00
Davis King c35041e31f Made mex files always build with fPIC. 2016-02-02 12:39:07 -05:00
Davis King 62c6ba3f30 Improved building of mex files. 2016-02-02 11:08:28 -05:00
Davis King 5c17c93f27 Minor change to avoid compiler warnings 2016-02-02 10:27:32 -05:00
Davis King ecc00ce7ab merged 2016-02-01 13:29:22 -05:00
Davis King 573fce15a8 Improved building of mex files with cmake. 2016-02-01 13:28:28 -05:00
Davis King 99ce564b67 Changed the tensor serialization format to use a 4 byte little endian IEEE
representation rather than dlib's default variable length encoding.  This
change makes the resulting serialized networks about 33% smaller.
2016-01-30 09:52:24 -05:00
Davis King 9d5c2b74db Added host_write_only() and device_write_only() to the gpu_data and tensor
objects.  Then made the relevant parts of the code use these functions.
2016-01-30 09:23:49 -05:00
Davis King 37c1055ac0 merged 2016-01-29 15:23:39 -05:00
Davis King b6b62fa2b1 Made cmake avoid using the Intel MKL when building mex files since it will
often create a conflict with MATLAB's copy of the MKL.
2016-01-29 15:22:41 -05:00
Davis King c029600a26 Added more Intel MKL search paths 2016-01-29 10:44:14 -05:00
Davis King 60d282a4ab Minor change to avoid compiler warning 2016-01-28 12:15:27 -05:00
Davis King 7b67bd2f20 merged 2016-01-28 12:12:10 -05:00
Davis King 060cdd092f Added struct support to matlab to C++ API 2016-01-28 10:38:58 -05:00
Davis King d479bf8590 Added tests to make sure the GPU and CPU conv code does the same thing. 2016-01-24 17:32:04 -05:00
Davis King fe6e2457df Added CPU convolution implementation. 2016-01-24 17:31:31 -05:00
Davis King fdfe77d11d Added missing asserts 2016-01-24 15:46:05 -05:00
Davis King 504dff2d63 removing cruft 2016-01-24 07:12:32 -05:00
Davis King cc5a62cd0b Made affine_transform() routines a little faster. 2016-01-24 07:10:43 -05:00
Davis King 919cbd1103 Added a multiply_ layer and set it up so you can use it instead of dropout_
after training has finished.
2016-01-24 07:03:06 -05:00
Davis King 565bed38f7 Made it so you can deserialize bn_ objects into affine_ objects. 2016-01-23 20:06:11 -05:00
Davis King c781316343 merged 2016-01-23 19:52:48 -05:00
Davis King a9e1c9e457 Made add_loss_layer's batch operator() more general. 2016-01-23 19:48:47 -05:00
Davis King 27274c17d9 updated docs 2016-01-23 19:46:31 -05:00
Davis King 3ca91aae81 Added unserialize. 2016-01-23 19:42:48 -05:00
Davis King 846a570479 Added an overload of operator() that lets you easily run a network on an
entire std::vector of objects.
2016-01-23 12:06:51 -05:00
Davis King 93ab80c758 Made the affine_ layer support being constructed from bn_ layers. Also added
unit tests for the routines supporting this feature.
2016-01-23 11:29:21 -05:00
Davis King 669a1e171d Added affine_transform_conv() and multiply_conv() as well as a CPU
implementation of assign_conv_bias_gradient().
2016-01-23 10:40:15 -05:00
Davis King e44b2aa266 Added missing requirements check. 2016-01-23 10:37:21 -05:00
Davis King 21e3e81fa0 Changed dot() so it doesn't call cublasSdot anymore since cublasSdot gives the
wrong outputs sometimes.
2016-01-23 09:40:04 -05:00
Davis King 316099a93f Made the search for the installed matlab a little more robust. 2016-01-22 12:25:47 -05:00
Davis King 24687a9eaa Added grid_stride_range_y cuda tool 2016-01-22 09:16:20 -05:00
Davis E. King e0995a6740 Merge pull request #71 from paulinus/handle-no-encoding
Decode message only if encoding is known
2016-01-20 06:15:44 -05:00
Pau Gargallo 05e2471555 Decode message only if encoding is known
When python does not know the encoding of stdout, sys.stdout.encoding
is None.  Then calling decode(None) raises an exception.  We just
skip decoding when the encoding is unknown.
2016-01-20 12:06:17 +01:00
Davis King 32dd3f2fe3 Fixed typo in comment 2016-01-17 16:20:50 -05:00
Davis King c8c55a8961 updated release notes 2016-01-17 12:50:21 -05:00
Davis King 373bc75f45 Added cpp11 tag to the docs and also updated them to include the new
running_gradient object.
2016-01-17 12:45:00 -05:00
Davis King 732ddefdd2 Removed link to dlib/all/source.cpp since it seems to confuse some users. 2016-01-17 12:17:58 -05:00
Davis King eee0d295c3 Improved error message you get about linking to libjpeg and libpng
if you try to open a jpeg or png file.
2016-01-17 12:06:53 -05:00
Davis King da6e48071c Added some preprocessor stuff to check if the user is #including
dlib/all/source.cpp into their own .cpp files.  If so they will get a useful
error message.
2016-01-17 11:54:31 -05:00
Davis King 12d9d257f2 Put guards around some GCC specific #pragma statements to avoid warnings in
visual studio.
2016-01-16 09:01:22 -05:00
Davis E. King e1ff23fdb5 Merge pull request #68 from yukoba/patch-1
sys.stdout.encoding instead of latin-1 in setup.py
2016-01-14 18:56:27 -05:00
Davis E. King 80e6443d83 Merge pull request #69 from severin-lemaignan/auto-ptr-guards
Add pragma guards around deprecated auto_ptr to prevent GCC warnings
2016-01-14 18:47:23 -05:00
Séverin Lemaignan d873810ee4 Add pragma guards around deprecated auto_ptr to prevent GCC warnings
Fixes #67
2016-01-14 13:18:15 +00:00
Yu Kobayashi d35104ed3c sys.stdout.encoding instead of latin-1 in setup.py
Please use sys.stdout.encoding instead of latin-1 in setup.py.
This is necessary for non English OS.
2016-01-14 11:07:18 +09:00
Davis King 55748d93c9 Made train_one_step() print stuff in verbose mode. 2016-01-11 20:38:04 -05:00
Davis King 6bd5c2e395 Made cmake use the built in find X11 scripts by default on OS X. 2016-01-10 18:31:49 -05:00
Davis King 4b2178c6e6 Made trainer disk synchronization more reliable and efficient. 2016-01-09 11:57:04 -05:00