Commit Graph
115 Commits
Author SHA1 Message Date
Haibin Lin ba2d9f61aa fix out option for mx.nd.zeros and mx.nd.ones" (#6589) 2017-06-05 23:49:59 -07:00
Eric Junyuan Xie 32ced389c1 backward headgrads and detach (#6332)
* backward headgrads and detach

lint

fix

add updated grad

add retain grad

exclude reduce

cpp cached invoke

cached symbol

move symbol init module

symbol cython

udpate

updated_grad->fresh_grad

fix

* fix
2017-05-30 19:02:08 -07:00
Eric Junyuan Xie 7460401f74 fix cython build (#6356)
* fix cython

* fix
2017-05-23 09:04:37 -07:00
yuruofeifei a4c72651c3 Update document for zeros_like, ones_like, softmax_cross_entropy, c_array, c_str (#6021) 2017-05-19 16:25:04 -07:00
Eric Junyuan Xie b005306064 Pre nn patch (#6201)
* pre-nn patch

* ifx

* fix

* fix
2017-05-13 06:14:42 -07:00
reminisce 77e5233f9b [DOCS] Add docs for several APIs (#6111)
* Add docs

* Fix lint

* Fix

* Fix

* Fix example

* Fix lint

* Fix format
2017-05-11 13:06:02 +08:00
Madan Jampani 1974be4a34 Doc updates to ensure method descriptions are in 3rd person declarative (#5989) 2017-04-27 10:14:14 -07:00
Jiajie (George) Chen c29331895c edit ndarray API docs (#5806)
* edit docs in broadcast_reduce_op

* edit docs in broadcast_reduce_op

* minor change

* lint fix

* fix

* mx.nd.ones

* mx.nd.repeat

* mx.nd.reverse

* add example in repeat

* optimizer update

* fix nanprod

* fix optimizer_op api doc

* fix reduce_op api doc

* fix nd.ones api doc

* mx.nd.repeat doc change

* Update broadcast_reduce_op.h
2017-04-24 16:04:58 -07:00
Naveen Swamy a022a0b428 update doc for math, concat, slice/crop functions (#5716)
* fix formatting issues with Reshape documentation

* update doc for abs,sign,round,rint,ceil,floor,rint,fix,square,sqrt,rsqrt,exp,log,log10,log10,log2,sin,log1p,cos math functions

* modify doc of math functions expm1,cos,tan,arcsin,arccos,arctan,degrees,radians,sinh,cosh,tanh,arcsinh,arccosh,arctanh,gamma,gammaln

fix concat doc

add deprecate note to crop

update doc for slice/slice_axis

* update Doc for Flatten/Clip
update doc for one_hot function

* update doc for softmax function
2017-04-19 15:25:27 -07:00
Indhu Bharathi 3939512112 Update doc for some NDArray functions (array, arange and full) (#5833)
* Update doc for mxnet.ndarray.arry and mxnet.ndarray.arange.

* Update doc for mxnet.ndarray.array and mxnet.ndarray.arange

* Update doc for mxnet.ndarray.full

* Update doc for NDArray's arange and array.

* Minor fix to mxnet.ndarray.full doc.
2017-04-18 12:35:36 -07:00
Roshani Nagmote 17bfe18f5e Fix docs for some NDArray functions (#5808)
* sort,argsort,topk,argmin,argmax,argmax_channel docs modified

* some sentence structure changes

* revert some changes made

* minor change

* sentence restructering

* sequencelast modified

* minor word changes

* formatting fixes

* SequenceMask added

* docs for SequenceReverse,true_divide is added

* line break

* minor change

* take, batch_take operators added

* minor formatting changes

* Changes after review

* note modified
2017-04-14 16:16:11 -07:00
Roshani Nagmote c296ea6abe Ndarray api docs (#5703)
* changes to broadcast, linearregressionoutput, maeregressionoutput, logisticregressionoutput operators

* changes to broadcast_axis

* broadcast_add, broadcast_sub, broadcast_mul, broadcast_div operators doc

* Regression methods doc rewrite

* some formatting and added broadcasting summary

* minor formatting change

* Added broadcast_power,broadcast_maximum, broadcast_minimum, broadcast_hypot

* changes according to review to ndarray.py file

* changes according to the review

* minor changes

* minor grammar changed, remaining broadcast methods added

* line too long error removed

* minor change for parameter

* Changes according to Zack's review

* minor change

* small changes after review

* line too long removed
2017-04-12 07:23:20 -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
ziheng 22482aecf9 Add error for NDArray bool casting (#5745)
* Add error for NDArray bool casting

* Fix tests and error in module

* Remove bool casting in test_utils
2017-04-09 17:36:38 -07:00
Naveen Swamy d99a7bfbe4 fix formatting issues with Reshape documentation (#5686)
* fix formatting issues with Reshape documentation

* update doc for abs,sign,round,rint,ceil,floor,rint,fix,square,sqrt,rsqrt,exp,log,log10,log10,log2,sin,log1p,cos math functions
2017-04-06 11:06:22 -07:00
Naveen Swamy 37d32e4bd8 Temporarily Revert to fix formatting issues "modify mx.nd.reshape documentation (#5609)" (#5673)
This reverts commit 138344683e.
2017-04-03 11:10:59 -07:00
Naveen Swamy 138344683e modify mx.nd.reshape documentation (#5609) 2017-04-02 14:37:12 -07:00
Jean Kossaifi 1f850e1afc Adds mx.nd.moveaxis (#5640)
* Added moveaxis function.

* DOC: fixed parameters description
2017-04-01 10:34:47 -07:00
Zack Chase Lipton 0df3bf6c73 Extensive revision of Python API docs (#5611)
* 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
2017-03-29 23:20:17 -07:00
Jean Kossaifi c3bb066763 Fix the behaviour of ndarray.T (#5625)
* Added ndim property to ndarray.

* FIX: removed leftover argument.

* PEP8

* FIX: T has no reason to only work on matrices.

* PEP8
2017-03-29 23:15:31 -07:00
Jean Kossaifi 9a14c0a74a Inference in ndarray Reshape. (#5607)
* Make reshape compatible with inference (-1).

* Make `shape` the default rather than `target_shape`

The latter is deprecated and does not work as NumPy users would expect.

* FIX: PEP

* FIX: `shape` parameter has to be first.

* FIX: pylint

* FIX: pylint

* Added unittest for reshape.
2017-03-28 21:35:41 -07:00
Eric Junyuan Xie f2d33e2fbe Pick (#5553)
* add pick op

* fix

* fix

* bump version

* fix
2017-03-24 12:04:57 -07:00
yuruofeifei 662ae231ea Fix docstring test for symbol.py and ndarray.py examples (#5549) 2017-03-23 20:46:18 -07:00
yuruofeifei 968adea437 Fix doctests for symbols example and ndarray cpu version example (#5527) 2017-03-22 20:16:55 -07:00
Zack Chase Lipton 51c9a0c0b5 Heavily revised symbol.py & ndarray.py docstrings (#5507)
* 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
2017-03-22 14:12:19 -07:00
David Leen 8b28b8c159 Fix out of bounds error in iterator (#5402)
Fixes 5401

>>> import mxnet as mx
>>> x = mx.nd.array([1, 2, 3])
>>> for a in x:
...     print a
...
<NDArray 1 @cpu(0)>
<NDArray 1 @cpu(0)>
<NDArray 1 @cpu(0)>
[09:44:11] mxnet/dmlc-core/include/dmlc/logging.h:300:
[09:44:11] mxnet/include/mxnet/ndarray.h:276: Check failed: shape_[0] > idx (3 vs. 3) index out of range

Stack trace returned 6 entries:
[bt] (0) 0   libmxnet.so                         0x000000010bb7f48e _ZN4dmlc15LogMessageFatalD2Ev + 46
[bt] (1) 1   libmxnet.so                         0x000000010bb6dbc5 _ZN4dmlc15LogMessageFatalD1Ev + 21
[bt] (2) 2   libmxnet.so                         0x000000010bb71a64 _ZNK5mxnet7NDArray2AtEj + 644
[bt] (3) 3   libmxnet.so                         0x000000010bb716b5 MXNDArrayAt + 101
2017-03-15 13:35:49 -07:00
Mu Li 34eb88cd6e [doc] refactor python ndarray api (#5151)
* update ndarray doc

* update doc

* update

* more and fix css

* update

* update

* update

* fix css

* fix

* add comments for layers

* change slice to py_slice

* more

* more layers

* remove weight updating

* fix for perl-package.

* more symbol

* more symbol

* more symbol

* fix lint

* fix lint
2017-03-03 11:08:00 -08:00
Eric Junyuan Xie 8e995ae611 refactor slice (#4974)
* refactor slice

incomplete shape for broadcast

* fix

* fix

* fix

* fix

* fix
2017-02-21 21:42:14 -08:00
Xingjian Shi 5e9f4e3555 [Doc] Fix doc of optimizer ops + fix doc of dtype (#5012)
* small fix of optimizer

* fix doc of dtype
2017-02-15 11:07:37 -08:00
Xingjian Shi 9f9c135bbb [OP] Topk and arange + Update submodules (#4565)
* initial add topk arange

fix arange

Put back ones and zeros

fix

fix default ctx

* fix lint

* Update Submodules

* Update MShadow

* fix warning

* fix pylint

* style fix
2017-01-07 23:07:42 +08:00
Howard0Su e06c55d646 Convert iterator to mx.img API (#4442)
* Convert iterator to mx.img API

* Add dtype to mxnet.nd.full

* Use device kv_store for ssd example
2017-01-04 14:03:23 -08:00
Eric Junyuan Xie d0728ca552 fix memmonger (#4441)
* fix memmonger

* fix

* fix
2016-12-30 20:52:35 +08:00
Eric Junyuan Xie 28a1cb2f6f fix ndarray bcast (#4352)
* fix ndarray bcast

* add ctx error message
2016-12-29 01:37:46 -08:00
Eric Junyuan Xie 2d03fb1389 refactor elementwise ops (#4227)
* separate broadcasting op and non broadcasting op

* fix

* fix
2016-12-29 01:37:46 -08:00
Shiv Gowda c03e1d2080 [Keras] Add support for element wise comparison operators #4182 (#4190)
Added element wise !=, >, >=, < and <= comparison operators
2016-12-29 01:37:46 -08:00
Minjie Wang 7ba830781a Add simple equal operator (#4027)
* add simple equal operator

* __eq__ override in python side; handle scalar situation; unittests
2016-12-29 01:37:46 -08:00
Eric Junyuan Xie 47507c9bf1 [WIP] binary broadcast wip (#3301)
* [WIP] binary broadcast wip

[OPERATOR] Binary Broadcast ops

fix lint

lint

fix

max and min

update submodule

before removing reduce axis

broad cast reduce ops

* update

* fix

* fix warning

* fix
2016-12-29 01:37:46 -08:00
Tianqi Chen fe57039b51 [CYTHON] Cython module for NDArray (#3292)
* [NDARRAY] Cython module for ndarray

* More strict tests
2016-12-29 01:37:46 -08:00
Tianqi Chen 005250068d [EXEC] Support fcompute (#3249)
* [EXEC] Support fcompute

* Fix lint

* fix lint
2016-12-29 01:37:46 -08:00
Tianqi Chen a541a1ad02 [PYTHON] Optional Cython Module for Symbols (#3242)
* [CYTHON] Checkin cython enhancement

* fix lint

* [DOC] Move common doc to base
2016-12-29 01:37:46 -08:00
Eric Junyuan Xie e59cb57c3e [NNVM] Imperative Invoke (#3208)
* [Engine] Deduplicate Variable Util

* [NNVM] NNVM Imperative Invoke

* [NNVM] Imperative improve speed

* fix

* fix
2016-12-29 01:37:46 -08:00
Eric Junyuan Xie 9a6ebe186c refactor test util (#3861) 2016-11-17 22:19:38 -08:00
andremoeller 5c255f2004 spelling/typo fixes (#3815) 2016-11-13 21:14:10 -08: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 67613fa13f Doc (#3513)
* add infrastructure for symbol doctest

* add regression test demo for FullyConnected

* move utils to test_utils.py

* fix lint error
2016-10-15 17:34:37 -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
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