Commit Graph
15 Commits
Author SHA1 Message Date
Istvan Fehervari b16f87505a [MXNET-524] Broadcast like operator (#11820)
* Registered the broadcast_like operator with GPU and CPU

Added appropriate shape inference

* Added python interface to ndarray and symbol

* Added python api documentation

* Fixed backward operation

* Added unit tests

* Fixed linting issues

* Added missing api doc
2018-07-20 09:56:16 -07:00
Istvan Fehervari f15b1b88b9 Added the diag() operator (#11643)
* Added np.diag as mxnet operator, WIP

Done:
2d input forward pass
Missing:
1d input forward
all backward

* Added a simple gradient transfer backwards operator for diag

Fixed small typos as well

* Finished backward operation

* Added full support for k

* Finished added the 1D case to the diag operator

Finished function documentation
Added unit tests

* Fixed cpplinter errors in the diag operator

Issues were extra white spaces and include order

* Fixed indentation in diag_op-inl.h

* Changed diag operator tests to use np.diag() as comparison

* Fixed kernel bug in gpu diag operator

* Replaced the min operator with an inline if statement.

* Added diag to ndarray and symbol

* Replaced the type of parameter k from int32 to nnvm::dim

* Added default argument to k in ndarray and symbol

* Fixed ndarray and symbol diag calls

* Fixed the optional k parameter

* Fixed cpp linting error

* Changed test data datatype to float32

* K values resulting into 0-sized diagonals will now throw an exception.

Added matching test case

* Fixed unittest

* Added diag to NDArray and Symbol api doc

* Added missing api doc
2018-07-19 13:26:46 -07:00
Anirudh 33022f82a3 [MXNET-382] Shape and Size Operator (#10889)
* Shape Operator

* cuda

* size op

* lint issues

* docs example

* add docs, change op name to avoid conflict, add convenience confluent
method

* change name to _nd

* fix test cases, add new kernel

* test name fix.

* solve gpu memory problem for size and shape

* get rid of FIgnoreInputs attr of shape_nd

* op name change

* fix

* retrigger CI

* retrigger CI

* retrigger CI

* trigger CI

* fix comments

* cpplint

* nit

* trigger CI
2018-06-29 18:05:38 -07:00
moin 5109b00b24 added ravel/unravel operators (#11025) 2018-05-30 11:59:16 -07:00
Anirudh 61f86fcfdc [MXNET-347] Logical Operators AND, XOR, OR (#10679)
* logical and

* logical OR and XOR operators.

* better examples

* nits.

* elemwise operators

* non broadcast examples and tests.

* doc API

* rerun CI
2018-05-01 09:43:38 -07:00
Deokjae Lee 095921e5a1 Add missing functions to ndarray and symbol API doc (#10577) 2018-04-17 21:38:31 -07:00
Joshua Z. Zhang 549fd64518 [MXNET-306] Add slice_like operator (#10491)
* add slice_like and doc

* pass unittest and lint
2018-04-11 15:02:59 -07:00
Xingjian Shi 279ccb1c77 [MXNET-58]Layer Normalization in C++ (#10029)
* add layer_norm + fix batch_norm doc

* add test

* add layer normaliation in Gluon

* update

* fix __repr__ + lint

* fix doc

* fix threshold

* fix doc

* fix bug

* enable inplace + fix test

* try to fix test

* fix doc
2018-03-09 17:36:58 -08:00
Sheng Zha fd45517614 Doc src and fix (#8718)
* add viewcode

* fix formatting
2017-11-19 21:57:15 -08:00
Eric Junyuan Xie a8f79bc6ac fix random docs (#8676) 2017-11-18 21:15:59 -08:00
Sheng Zha dd3853f997 fluent methods for missed ops (#8329) 2017-10-17 22:57:20 -07:00
Sheng Zha db374b19d8 doc update (#8088)
* doc update

* keep blocks in nn namespace
2017-09-30 11:18:19 -07:00
Haibin Lin 6452fe681e More sparse related docs (#7911)
* more sparse related docs

* fix lint

* fix grammar

* raise exception on unimplemented aux type for sparse
2017-09-27 14:27:20 -07:00
Haibin Lin 2abee10abd correct file path for API reference auto index (#7818)
* correct path for autoindex.js

* correct path for ImageRecordDataset
2017-09-09 15:25:14 -07:00
Haibin Lin 10a72c8275 Python symbol/ndarray api re-org (#7712)
* add ndarray folder

* add sparse.md draft

* update sparse.md

* add contrib, linalg, random to ndarray.md

* add contrib, linalg random to symbol

* add sparse.md

* update notes and op docs for sparse

* remove unused files

* add back random & la

* fix inherited methods for sparse ndarray

* remove speical members

* fix lint

* add contrib

* add random.md
2017-09-07 13:45:21 -07:00