Commit Graph
70 Commits
Author SHA1 Message Date
Chiyuan Zhang 23bf60cab8 Time major data layout support for RNN (#3497)
* rnn-cell demo (push to server for testing)

* a running example with cuDNN RNN cell

* ndarray concatenate

* fix lint errors

* allow batch_axis in executor_group

* add batch_axis parameter for all modules

* fix bug in copy slice implementation

* fix module examples

* use batch_axis if data iterator provided such information

* rnn cell example in time major

* fix init state names in rnn cell bucketing example

* sanity check stochastic depth mnist

* a cifar10 example (not tested)

* add description for sd cifar

* add doc for sd module

* add a simple random number queue

* add final numbers

* fix typo

* default layout mapper

* fix other modules for layout mapper

* fix typo

* softmax output mode that preserves the shape

* comments on run-time speed of time-major

* extend layout mapper to include other information

* fix data layout API change

* fix lint errors

* fix Travis CI numpy error on unit test
2016-10-13 22:54:01 -04:00
Chiyuan Zhang d67964ca13 Copy slice along arbitrary axis (#3259)
* rnn-cell demo (push to server for testing)

* a running example with cuDNN RNN cell

* add copyslice along arbitrary axis for NDArray

* copy_slice_to as an ndarray operator

* Python interface to the _copy_slice_to operator

* fix lint error
2016-09-09 15:02:50 -04:00
Eric Junyuan Xie 92a2d03740 Bulk lint fix (#3211) 2016-09-03 08:38:45 -07:00
Eric Junyuan Xie d98e823952 fix caffe stream (#2984)
* fix caffe stream

* allow multiple extra operator

* fix python 2/3 codec conflict
2016-08-10 18:33:41 -07:00
sxjscience 3c3cba4f5b Enable auto-broadcasting for ndarray.broadcast_to. We can broadcast (50,) to (20, 50) 2016-07-19 11:07:56 +08:00
Tianqi Chen 72ea6f9819 Refactor symbol ndarray register mechanism (#2745) 2016-07-18 10:48:23 -07:00
Xingjian Shi b5313c17be Implement broadcast_to in the C++ side (#2525)
Revise other Simple OPs for the doc problem.

Revise python test
2016-06-24 12:14:44 -07:00
Xingjian Shi f10e709e6e Sum with axis full support (#2518)
* Add full support of sum (multiple axes + keepdims)

* Fix style

* Fix lint
2016-06-23 18:30:50 -07:00
Minjie Wang 560c3124be Add minimum operator 2016-06-20 02:17:04 -04:00
Minjie Wang 1a0d91410e fix lint and python2 division overload 2016-06-13 01:19:44 -04:00
Minjie Wang eb8b3eca71 add maximum operator 2016-06-12 23:48:08 -04:00
Minjie Wang 9a42e15ef1 add ufunc_helper that helps all broadcasting issues; fix div operator in python3 2016-06-12 23:48:08 -04:00
Minjie Wang d7fdf4022f 1. temporarily fix gcc 6.1 and cuda problem; 2. add power to ndarray 2016-06-12 23:48:08 -04:00
Junyuan Xie ae074528cd fix 2016-06-03 19:21:48 -07:00
Junyuan Xie 511930d699 custom op memleak fix and ndarray at indexing 2016-06-03 12:07:27 -07:00
Xingjian Shi 78e6641608 Add axis support for broadcasting and sum. Also add max_axis and min_axis (#2292)
Update submodule mshadow

Fix test script

Fix c_api, Use ``.encode` to get byte string

Revise the for loop in the python side of `broadcast_to`

Remove `sum_mid_internal` in R package
2016-06-02 06:58:27 -07:00
Junyuan Xie 5eadb90cfc custom op fix 2016-05-18 13:23:29 -07:00
Chiyuan Zhang 27cf268542 try to avoid unnecessary copying when possible 2016-04-14 19:44:03 -04:00
pluskid 4f9e83dff9 concatenate of ndarray in 1st dimension 2016-04-14 19:24:21 -04:00
Chiyuan Zhang 147a0cfc72 add equality comparison for contexts 2016-04-14 18:46:21 -04:00
Minjie Wang d4d14d6e89 fix lint 2016-04-01 20:59:52 -04:00
Minjie Wang f6d425a378 change sum_internal back to sum; add workaround for name duplication 2016-04-01 20:01:57 -04:00
Minjie Wang a249cfa934 fix lint, and update submodules 2016-04-01 17:59:08 -04:00
Minjie Wang 5abcb78d64 1. allow left arith with numpy numerical value
2. fix broadcasting semantics
2016-04-01 14:07:03 -04:00
Yutian Li bd075542df [master] Compatible with Python 3. 2016-04-01 14:06:48 -04:00
Minjie Wang 5566db57f4 rewrite broadcast into ndarray function 2016-04-01 14:06:41 -04:00
Minjie Wang ff6970db36 broadcast for arithmetic operations 2016-04-01 14:06:30 -04:00
Yutian Li 1ae4a87c98 [broadcast] Fix bug and broadcast. 2016-04-01 14:06:14 -04:00
Yutian Li efd8d581f2 [sum-partial] Do sum. 2016-04-01 14:04:54 -04:00
Minjie Wang 6f808c878a fix subtract 2016-04-01 14:01:39 -04:00
Minjie Wang ae1b621a6f add transpose operator 2016-04-01 14:01:03 -04:00
Minjie Wang 26d30e884b add full operation 2016-04-01 13:59:18 -04:00
Minjie Wang 7fe4b32c14 add elewise add/sub/mul/div function for ndarray 2016-04-01 13:58:10 -04:00
Junyuan Xie 2716364e23 ndarray image decoding 2016-02-02 23:55:05 -08:00
Chuntao Hong f7b9d3d84d fix lint 2016-02-02 10:59:56 +08:00
Chuntao Hong 184e4464fc fix api problem for R and python 2016-02-01 18:18:57 +08:00
Yizhi Liu a18fdfb0ee fix some typos, comment mismatch, and small code optimization 2016-01-25 10:55:04 +08:00
Junyuan Xie 903c6efa2a more torch ops 2016-01-10 22:39:49 -08:00
Junyuan Xie c39f852200 torch ndarray function backend 2016-01-10 22:39:49 -08:00
Junyuan Xie 592b78e531 ndarray type support. 2016-01-07 23:08:12 -08:00
Yizhi Liu 0c99995ef5 remove duplicate var definition 2015-12-11 10:50:30 +08:00
Junyuan Xie d6ab7f4940 monitor 2015-11-25 21:21:04 -08:00
Bing Xu 513da47d23 Add waitall 2015-11-11 17:10:19 -07:00
tqchen 549bd7830a [OP] Add norm 2015-10-26 20:13:03 -07:00
tqchen 280a423f8f [NDArray] Add onehot_encode 2015-10-20 21:25:18 -07:00
Chiyuan Zhang d790b64062 check writable bit in NDArray 2015-10-13 20:07:06 -04:00
Chiyuan Zhang 113435e5aa __neg__ should return new array instead of changing self 2015-10-06 00:29:10 -04:00
Bing Xu 97bfb3f440 [NDArray] clip 2015-10-04 19:18:45 -06:00
Chiyuan Zhang 38c50552d7 typo for a tuple 2015-10-02 14:38:45 -04:00
Chiyuan Zhang 222c393837 fix typo causing unary ndarray function being defined with fallback generic function 2015-10-02 14:03:23 -04:00