first commit
first commit
Check in works
Send the inplace version as a different diff
Fixing minor issue on device_malloc
Update DiagonalSubtensor.grad to don't return None.
Update IncDiagonalSubtensor.grad to don't return None.
pep8
Merge pull request #1 from nouiz/master

[MAIN] Update grad() method to don't return None.
Fixing a few minor bugs. Using minimum no of threads/blocks as supported
Addressing code review comments obtained. Moving the code to c_support_apply_code  and handling the cases for launching the threads and blocks to be minimum of thresh-hold or what is required
Correcting alignment
Correcting indentation
Taking care of 2 comments: Usig cast to intX and PyDecRef of cpu_indices_arr
Addressing code review comments to use intX and pydecref
BUGFIX: reduction that upcast the input on no axis (ex: sum on scalar).

It produce bad results as we don't upcast the inputs in the code, we just copy it.
Add many tests related to the reduction on 0 axis and upcast bug.
make some reduction test work with complex.
Merge pull request #1416 from nouiz/reduce_dtype_noaxis

[BUGFIX] Reduce dtype noaxis
Fixed #defines to work with npy_3kcompat and bytes.
npy_3kcompat redefines old PyString_X to use bytes, but this breaks
compatibility with python code expecting new strings. The solution is to
use PyUnicode wherever possible instead of PyBytes.