Commit Graph
40 Commits
Author SHA1 Message Date
Eric Junyuan Xie 2e0ffdb8a4 Revert "account for batch padding when updating metrics (#7949)" (#8032)
* Revert "Update executor_group.py (#8003)"

This reverts commit 4aaefa04b1.

* Revert "account for batch padding when updating metrics (#7949)"

This reverts commit 5db5da996e.
2017-09-25 16:19:40 -07:00
Eric Junyuan Xie 4aaefa04b1 Update executor_group.py (#8003) 2017-09-23 11:36:33 -07:00
mikerossgithub 5db5da996e account for batch padding when updating metrics (#7949)
* take account of padding in module.update_metric

* use more recent function names
2017-09-21 21:53:27 -07:00
Mu Li 251ae71a20 Add license header (#7379)
* add

* add .py and ci

* fix pylint

* update
2017-08-08 16:36:23 -07:00
Eric Junyuan Xie 4747c6b567 revert module changes (#7055) 2017-07-14 23:11:23 -07:00
Eric Junyuan Xie b88e0d4752 nn interface (#6501)
* mixed nn interface

* fix loss

* fix

* fix prefix kwargs

* refactor names

* fix

* fix

* rnn lint

* fix

* fix

* ignore invalid grad in optimizer

* fix loss shape

* fix

* fix

* post rebase fix

* move nn to mxnet.

* fix

* use cached

* dcgan

* fix

* fix

* lint
2017-07-12 12:27:32 -07:00
Jameson d6d61915aa allow extra params in module set params (#6753)
* allow extra params in Module Loading

* fix lint + one missing init_param

* allow_extra_params -> allow_extra

* added tests
2017-06-22 17:32:09 -07:00
Leonard 3384d206a2 Reformulate some comments in executor_manager and executor_group (#6740) 2017-06-20 15:32:39 -07:00
reminisce 10af1c7329 Improve symbol bindings (#5870)
* Initial checkin

Add init functions for simple bind in graph_executor

Add simple_bind c_api

Add simple bind c-api

Assign zeros to in_args, arg_grads, and aux_states

Add simple_bind2 python interface

Fix python interface bugs

Interface changes

Fix

Fix core dump

Add bind_ith_exec c_api

Change simple_bind2

Fix seg fault

Finish simple_bind

Change _bind_ith_exec

Refactor simple_bind initialization flow for bind

Consolidate bind and simple_bind graph init flow

Fix bug

Clean up

Add comments

Clean up

Clean up

Minor correction

Rename APIs in graph executor

Refactor

Rebase

Delete deprecated functions

Move more front-end work to backend

Bug fix

Fix failed tests

Minor fix

Fix lint

Fix lint

Revert unnecessary changes

Revert

Revert

Clean up

Fix lint

Fix bind_ith_exec calling simple_bind

Fix bugs for _bind_ith_exec

* Add unit test (#1)

* Add unit test

* Fix

* Small fix

* Fix lint

* Fix lint

* Fix bugs of missing ndarrays in shared_buffer

* Fix lint

* Simple bind (#3)

* Add bucketing test

* Skip pylint

* Use cpu to train

* Fix bug

* Remove merge message

* Fix lint

* Add logging to test_bucketing.py

* Reduce model size (#4)

* Add checks for shape/type inferences

* Add printing error messages for shape/type inference failure
2017-06-02 23:58:22 -07:00
Przemyslaw Tredak 35d5e54c43 Removing unnecessary copies when copying data to device (#6390)
* Removing unnecessary copies when copying data to device

* Making python linter happy

* Really making pylint happy this time

* Using slice_axis

* Making pylint happy
2017-05-24 10:14:36 -07:00
Jie Zhang 1e3c3b5f73 fix bug in update_metric (#6263) 2017-05-15 20:29:38 -07:00
Eric Junyuan Xie b005306064 Pre nn patch (#6201)
* pre-nn patch

* ifx

* fix

* fix
2017-05-13 06:14:42 -07:00
Xingjian Shi 1a9db4efb3 [Module] fix input_grads order (#5980)
* fix input_grads order + update dmlc-core

* set label to be optional
2017-04-26 09:45:33 -07:00
Zack Chase Lipton b3b21e4e20 Python API revisions (#5687)
* python -> Python (fixed capitalization typo)

* flavours -> flavors for internal consistency with American spellings. Changed 'good flabors' to specify imperative and symbolic programming, better not to tease the reader

* Improved writing of 'History' section

* Improved writing of 'History' section

* fixed symbol.md doc which previously used deprecated / incorrect mxnet.sym.var instead of the real/working mxnet.sym.Variable

* fixed typos and readability in parts of the README.md

* removed awkward phrasing about 'flavours'

* typo cleanup

* Update NEWS.md

Fixed typos

* adding eval function for combining  with , makes for quicker introspection in interactive interpreters

* fixed docstrig

* fixed docstring, cleaned up whitespace

* clean up

* Changed code to work with **kwargs, doesn't require dictionary explicitly. This also removes need for clumsy code to handle the case where there are no arguments

* fixed too-long lines in the docstring

* Update symbol.py

* heavily revised docs in symbol.py

* lightly revised content in ndarray.py

* Update symbol.py

* heavier pass for language on ndarray.py

* fixed docstring line lengths per lint

* fixed string continuation error

* Improved docs for (alphabetically) model.py through visualization.py

* fixing line-too-long pylint bugs

* fixes pylint line length error

* improved documentation further by making cosmetic edits to all other files in the Python API

* edited module .py documents, also modified all .py docs to comply with numpy doc standard and to use double backticks around True, False, and None values

* adding a few files that escaped last commit

* Update name.py

fixed speciry -> specify

* changing binded to bound everywhere, warning for using old attribute name

* debugging indentation error in base_module and Non-ASCII character in rtc.py

* fixed pylint line-too-long errors

* fixing docstring line in bucketing module

* fixing docstring line in bucketing module

* changed 'bound' back to 'binded' in code so that doc changes could be merged in without breaking code
2017-04-10 14:26:59 -07:00
Xingjian Shi 31530ddecc Replace concatenate with concat when merging from ctxs (#5305)
* replace concatenate with concat when merging from ctxs

* use as_in_context
2017-03-11 10:11:59 -08:00
Haibin Lin 884b50a1c3 Memory allocator bug fix #5035 (#5133)
* Always pass in the bucket with default_bucket_key as the shared_module while binding new buckets

* Imbalance version of shared pool during plan memory

* Auto search and updated shared mem pool

* Cleanup unused code

* Sort new pool before memory matching. Remove shared pool in PlanMemory. Add test case for bucketing

* Remove itoa().

* Fix lint warnings

* Change total_exec_bytes to private.
2017-02-28 09:25:16 -08:00
Eric Junyuan Xie fa80891c48 add states to modules (#5104)
* add states to modules

* fix
2017-02-27 15:20:22 -08:00
Eric Junyuan Xie dc47e06f6f add api symbol.get_children (#5141) 2017-02-25 14:02:08 -08:00
Eric Junyuan Xie c414f7eabb Keras support (#4690)
* Support incomplete shape in infershape

* add null gradients for logic ops

* Support incomplete shape in infershape

* add null gradients for logic ops

* Update elemwise_binary_broadcast_op.h

* Update elemwise_binary_broadcast_op.h

* fix'

* fix

* module reshape

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix
2017-01-22 22:49:45 -08:00
Eric Junyuan Xie 67061681a7 Layout (#3498)
* refactor layout support

* refactor layout support in module and convolution

* change auto tune strategy

* fix

* fix

* fix
2016-12-29 01:37:46 -08:00
Eric Junyuan Xie d3c1b6c3b2 module grad_req fix (#3880)
* module grad_req fix

* fix

* fix
2016-11-18 12:06:17 -08:00
Eric Junyuan Xie 8413b28fe8 Revert "dtype support for variable" (#3606)
This reverts commit 86c8c245194f485f6ba9b882387a5aa4a9659a01.
2016-10-24 16:32:16 -07:00
Eric Junyuan Xie 37abdac862 Upmaster (#3597)
* grad weight for softmax

* grad_req for module

* dtype support for variable

* fix lint
2016-10-23 18:44:53 -07:00
Chiyuan Zhang f128e4e90e fix #3553: legacy copy_slice_to (#3564)
* fix #3553: legacy copy_slice_to

* fix lint errors
2016-10-18 19:37:30 -04:00
Chiyuan Zhang cf00ca064d Crop assign (#3547)
* crop_assign operator

* use crop_assign in data par

* remove legacy copy_slice_to and assign_slice_from

* update mshadow

* _crop_assign_scalar

* __setitem__ for NDArray

* fix lint errors
2016-10-17 20:35:35 -04:00
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
Eric Junyuan Xie 92a2d03740 Bulk lint fix (#3211) 2016-09-03 08:38:45 -07:00
Jian Guo fc0bb3920e extend Module to fix_param_names that saves gradient computation and update faster rcnn example (#2794)
* extend Module to fix_param_names that saves gradient computation and update faster rcnn example

* update faster rcnn example to full module api usage

* fix lint

* fix faster rcnn training script

* faster rcnn example remove imcompatible old solver
2016-07-25 20:04:05 -07:00
Junyuan Xie b40ec35779 module monitor 2016-07-03 17:34:10 -07:00
Chiyuan Zhang f2f88d522d fix bug (typo) 2016-04-21 09:58:38 -04:00
Chiyuan Zhang 540b27b7d6 fix bug when binding module as not-for-training (#1861) 2016-04-15 10:52:18 -04: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
pluskid 4a7fa887d6 a very simple model-par + data-par example 2016-04-14 18:56:02 -04:00
Chiyuan Zhang ec94885636 make sure out-grads lives in correct contexts 2016-04-14 18:49:43 -04:00
Chiyuan Zhang 97108b8987 example for seg-fault debugging 2016-04-13 16:08:12 -04:00
Chiyuan Zhang 3dffb4ad66 sequential module container 2016-04-13 12:54:38 -04:00
Chiyuan Zhang 079a9ed706 fix lint error (+1 squashed commit)
Squashed commits:
[78028fd] fix travis CI errors
2016-04-13 00:06:43 -04:00
Chiyuan Zhang 6295c752d5 update mshadow (+2 squashed commits)
Squashed commits:
[f43c089] update mshadow (+7 squashed commits)
Squashed commits:
[ac974e8] adapt lstm-inference for modified lstm_unroll
[c7f7cb2] also change module system to bucketing memory sharing
[de175b7] modify executor binding for better memory sharing under new lstm example
[1cfe746] fix lstm example
[d28f43e] temp push to server for testing
[ac9d899] fix bug in embedding layer with multi-dimension
[fee081c] allow multi-dimension for embedding layer
[ebe9d60] allow slice channel to squeeze the sliced dimension
2016-04-12 15:57:36 -04:00
Chiyuan Zhang ecfe83f349 re-organization and fix lint errors 2016-04-11 22:40:32 -04:00