Edward Z. Yang
f3aa97f169
Deduplicate THPUtils_checkLong/THPUtils_unpackLong ( #2218 )
...
There were two implementations of THPUtils_checkLong/THPUtils_unpackLong; one
that was a macro and one that was not, which is hella bad if you accidentally
include the macro before the real definition. Now we always use the inline
function.
A reasonable follow-up task would be to un-macro-ify the rest of these functions.
Signed-off-by: Edward Z. Yang <ezyang@fb.com>
2017-07-27 03:12:12 +05:30
Gregory Chanan
be65f46c76
Add optional warning for backwards incompatible keepdim. Setting torch.utils.backcompat.keepdim.warning.enabled=True will cause Python warnings in the case where the default value of keepdim is used for 1-d reductions.
...
Also specify keepdim via kwargs in library so these warnings have less
noise.
2017-06-11 05:37:59 -04:00
Gregory Chanan
3556d1b8a3
Add optional warning for backwards incompatible broadcast.
...
Setting torch.utils.backcompat.broadcast.warning.enabled=True
will cause Python warnings in the case where broadcast occurs
but previously 1-d view style pointwise ops occured.
2017-06-11 05:37:59 -04:00
Sam Gross
4c1cdb6148
Refactor Python string utility function
2017-04-28 21:25:26 +02:00
Adam Paszke
91c4ba7980
Add torch.arange and deprecate torch.range
2017-04-03 10:38:58 -04:00
Sam Gross
379ae6d865
Refactor out dispatchStateless ( #1007 )
...
Some of the error messages were incorrect due to erroneous
'tensor == THPDefaultTensorClass' checks
2017-03-15 16:24:55 -04:00
Adam Paszke
67f94557ff
Expose torch.HalfTensor
2017-02-27 19:35:47 -05:00
Adam Paszke
84248690a9
Add support for indexing with None and slices with positive steps
2017-02-20 23:28:31 -08:00
Sam Gross
b43ce05268
Refactor parts of utils.h ( #648 )
...
Moves THPObjectPtr into a separate header, so that it can be included
independently. Currently, utils.h requries all of THP.h. Also adds RAII
structs for acquiring and releasing the GIL.
2017-01-30 21:16:28 -05:00
Sam Gross
c414bf0aaf
Fix handling of unicode in torch._C._add_docstr ( #487 )
2017-01-18 17:22:30 -05:00
Adam Paszke
0e345aaf6d
Fix invalidArguments to take kwargs and out into account ( #397 )
2017-01-04 19:49:11 -05:00
Zeming Lin
59d66e6963
Sparse Library ( #333 )
2017-01-05 00:43:41 +01:00
Sam Gross
8a29338837
Use cuDNN for Conv3d and ConvTranspose3d ( #359 )
...
I've also updated test_nn.py to run marked tests twice: once with cuDNN
enabled and once with it disabled.
2016-12-28 16:14:47 -05:00
Adam Paszke
bef70aa377
Make type checking more strict and fix topk arguments
2016-12-28 18:15:17 +01:00
Sam Gross
126a1cc398
Add Sphinx docs
2016-12-28 00:03:39 +01:00
Sam Gross
f2d7e94948
Use torch.Size for Tensor sizes and tuple for strides
...
See issue #20
The torch.Size class is a tuple subclass which distinguishes sizes from
other tuples so that torch.Tensor(size) is interpreted as size instead
of data.
2016-10-28 19:37:09 +02:00
Sam Gross
ad2d413c0b
Add C++ bindings for cuDNN ( #167 )
...
The Python ctypes bindings overhead was high enough that it slowed down
multi-gpu training when using 4+ Maxwell GPUs.
2016-10-26 19:51:48 -04:00
Adam Paszke
f137c0c05a
Improve error messages of stateless functions
2016-10-24 22:29:43 +02:00
Adam Paszke
0325e2f646
Major autograd refactor
...
Improves autograd performance by more than 2x and fixes a couple
of bugs. All core functions have been moved to C.
2016-10-13 17:17:49 -07:00
Adam Paszke
e71204b52f
Improve error messages in storage and tensor C functions
2016-09-23 17:17:35 -07:00
Adam Paszke
06ab3f962f
Refactor _C extension to export some utilities
2016-09-21 08:36:54 -07:00
Adam Paszke
491fbfdc8c
Improve error messages of tensor methods
2016-09-15 18:49:20 -07:00
Adam Paszke
f9d186d33a
Add initial version of multiprocessing module
2016-08-31 19:46:08 -07:00
Adam Paszke
ef7364b80e
Fix Python 2.7 compatibility
2016-08-12 18:26:10 -07:00
Adam Paszke
bc7bd7a8b3
Add unit tests and fix detected bugs
2016-07-21 13:46:59 -04:00
Adam Paszke
2b53cce79f
Minor improvements in utils
2016-06-25 22:55:04 +02:00
Adam Paszke
523a6670f4
Improve cwrap error handling and fix memory leaks on error
2016-06-21 01:22:59 +02:00
Adam Paszke
4f66ea42af
Add random-related Tensor methods
2016-06-18 21:36:10 +02:00
Adam Paszke
0eb2b9e756
Add more Tensor and Storage methods
2016-06-15 23:03:47 +02:00
Adam Paszke
a9282edf79
Add THPPointer and more Tensor methods
2016-06-13 13:26:00 +02:00
Adam Paszke
60f9834ac6
Add more Tensor methods
2016-06-10 00:04:24 +02:00
Soumith Chintala
5ee3358a92
python 2 support
2016-06-08 19:14:57 -04:00
Adam Paszke
c3b3df9f22
Add utilities and clenup Tensor wrappers
2016-05-06 15:04:57 +02:00