193 Commits
Author SHA1 Message Date
Przemyslaw Tredak 87441c3817 Add infer_type_partial (#14214)
* Add infer_type_partial

* Added infer_type_partial to symbol docs main area

* Added test
2019-02-21 17:49:34 -08:00
Pedro Larroy 3a6fe22b66 Refine runtime feature discovery python API and add documentation to … (#14130)
* Refine runtime feature discovery python API and add documentation to Python API docs

* Fix lint

* Provide is_enabled method to check if feature is present from string

* Refine docs, add is_enabled

* Fix encoding

* Fix doc

* Address CR suggestions

* remove index as per CR suggestion

* Fix lint

* runtime

* Fix doc

* Add license
2019-02-18 11:29:47 -08:00
Holger Kohr de5cda2714 Add pixelshuffle layers (#13571)
* Add pixelshuffle layers, closes #13548

* Remove fmt comments

* Use explicit class in super()

* Add axis swapping to pixel shuffling, add tests

* Add documentation to pixel shuffle layers

* Use pixelshuffle layer and fix download in superres example

* Add pixelshuffle layers to API doc page
2019-02-14 15:41:52 -08:00
Sheng Zha 6f9a679013 fix website build (#14148)
* fix rendering of markdown doc

* fix missing license from lipnet example
2019-02-13 16:24:22 -08:00
Sheng Zha 199bc7eef6 make rat-excludes compliant with apache release policy (#14142)
* remove md from whitelist

* remove rst from whitelist

* remove docker folder from whitelist

* remove docs from whitelist
2019-02-13 10:12:12 -08:00
Ziyi Mu b86ccf1be7 Add erfinv operator for calculating inverse error function (#13811)
* add default behaviour for argmax

* prototype of erfvin

* add test

* gpu support

* Revert "add default behaviour for argmax"

This reverts commit 64e9f1a9e3c9cabf312b8d80b3520b22da31c0b6.

* move erfinv to contrib

* edit copyright

* remove atof

* use std and update license

* add license exclude file

* fix per eric's comments

* change license header
2019-01-22 08:36:31 -08:00
Anirudh 75d1d4fec7 Add imresize and copyMakeBorder to mx.image (#13357)
* Add imresize API to docs

* address comments

* copyMakeBorder
2018-12-10 16:49:24 -08:00
Tao Lv 29885c5670 Revert "Bumped minor version from 1.4.0 to 1.5.0 on master, updated License file" (#13558)
* Revert "Chi_square_check for discrete distribution fix (#13543)"

This reverts commit cf6e8cbd03.

* Revert "Updated docs for randint operator (#13541)"

This reverts commit e0ff3c36ee.

* Revert "Simplifications and some fun stuff for the MNIST Gluon tutorial (#13094)"

This reverts commit 8bbac82774.

* Revert "Fix #13521 (#13537)"

This reverts commit f6b4665995.

* Revert "Add a retry to qemu_provision (#13551)"

This reverts commit f6f840110d.

* Revert "[MXNET-769] Use MXNET_HOME in a tempdir in windows to prevent access denied due t… (#13531)"

This reverts commit bd8e0f8356.

* Revert "[MXNET-1249] Fix Object Detector Performance with GPU (#13522)"

This reverts commit 1c8972c3c8.

* Revert "Fixing a 404 in the ubuntu setup doc (#13542)"

This reverts commit cb0db290ad.

* Revert "Bumped minor version from 1.4.0 to 1.5.0 on master, updated License file (#13478)"

This reverts commit 40db619080.
2018-12-06 17:44:06 +08:00
Chaitanya Prakash Bapat e0ff3c36ee Updated docs for randint operator (#13541)
* updated docs for randint

* added randint in __all__ and reordered acc to categorical then alphabetical

* Trigger CI

* minus mxnet.symbol and alphabetical for ndarray,symbol.md

* alphabetical order
2018-12-05 21:58:19 -08:00
Steffen Rochel 40db619080 Bumped minor version from 1.4.0 to 1.5.0 on master, updated License file (#13478)
* updated to v1.5.0

* Bumped minor version from 1.4.0 to 1.5.0 on master

* added Anirudh as maintainer for R package

... adding something useful and re-trigger PR check

* Updated license file for clojure, onnx-tensorrt, gtest, R-package

* Get the correct include path in pip package (#13452)

* add find_include_path API

* address reviewer comment

* change return type from list to string

* add unit test

* address reviewer comment

* address reviewer comment

* address reviewer comment

* address reviewer comment

* fix include path problem in pip package

* add comment

* fix lint error

* address reviewer comment

* address reviewer comment

* Use ~/.ccache as default ccache directory so is not cache is not erased on reboot (#13431)

* Skip flaky test https://github.com/apache/incubator-mxnet/issues/13446 (#13480)

* Rewrite dataloader with process pool, improves responsiveness and reliability (#13447)

* fix recordio.py

* rewrite dataloader with pool

* fix batch as tuple

* fix prefetching

* fix pylint

* picklable function

* use pickle

* add missing commit

* Fix errors in docstrings for subgraph op; use code directive (#13463)

* [MXNET-1158] JVM Memory Management Documentation (#13105)

* update train_mnist

* Add documentation for JVM Memory Management

* update doc

* address nit picks

* address nit picks

* Grammar and clarity edits for memory management doc

* Edits for scala memory management

* Update memory-management.md

* Update memory-management.md

* Update memory-management.md

* capitalization fix

* Update row_sparse tutorial (#13414)

Update row_sparse tutorial

* Add resiliency to onnx export code (#13426)

* Added resiliency to onnx export code

- With previous infer-shape implementation, if input shape was list instead of tuple or if extra non-existent parameters were provided, the code would still work. The fixes in this commit make sure that behavior is restored to prevent any compatibility issues with existing export code.

* Fixed name of net in unittest

* Fix pylint

* [MXNET-1185] Support large array in several operators (part 1) (#13418)

* fix a few operators with large arrays (# of elements)

* fix bug in broadcast_div and add tests

* address reviewer comment

* add unit test

* add empty line

* retrigger CI

* [MXNET-1210 ] Gluon Audio - Example (#13325)

* Initialized the example

* Addressed PR comments, about existing synset.txt file - no overwrite

* RST - docstring issues fixed

* added README

* Addressed PR comments

* Addressed PR comments, checking Divide by 0

* Raising error if format is not supported.

* changed a line for ndarray of labels

* Trigger CI

* Trigger CI

* PR comments addressed around skip_header argument

* Addressed PR comments around librosa import

* PR Comments

* Passing lazy=lazy from argument

* Added PR comments, labels to README.MD

* Trigger CI

* Addressing PR Comments in README

* Modified README.md

* Added example under audio folder

* Retrigger CI

* Retrigger CI

* ONNX export: Instance normalization, Shape (#12920)

* ONNX import/export: Make backend_rep common

* ONNX export: Instance Normalization

* ONNX export: Shape operator

* Clarify dependency on OpenCV in CNN Visualization tutorial. (#13495)

* clarify ops faq regarding docs strings (#13492)

* Add graph_compact operator. (#13436)

* add graph_compact.

* fix.

* add doc.

* add tests for graph_compact.

* address comments.

* update docs.

* trigger CI

* Deprecate Jenkinsfile (#13474)

* update github location for sampled_block.py (#13508)

Updated to https://github.com/dmlc/gluon-nlp/blob/master/src/gluonnlp/model/sampled_block.py

* #13453 [Clojure] - Add Spec Validations to the Optimizer namespace (#13499)

* ONNX export: Logical operators (#12852)

* Fix cmake options parsing in dev_menu (#13458)

Add GPU+MKLDNN unittests to dev_menu

* Revert "Manually track num_max_thread (#12380)" (#13501)

This reverts commit 75410210e0.

* Feature/mkldnn static 2 (#13503)

* build mkldnn as static lib

* update makefile to statically build mkldnn

* build static mkldnn

* fix static name

* fix static name

* update static for mac

* rename mkldnn dep in ci

* remove moving mkldnn dynamic lib

* remove commented code

* remove mkldnn dnaymic for unitest

* force static for mkldnn lib

* remove dynamic mkldnn bind

* only link windows

* add mkldnn.mk

* try force linking

* remove mkldnn dynanmic check

* remove test mkldnn install

* fix spacing

* fix index

* add artifacts

* add comment about windows

* remove static

* update makefile

* fix toctree Sphinx errors (#13489)

* fix toctree errors

* nudging file for CI

* Disabled flaky test test_gluon_data.test_recordimage_dataset_with_data_loader_multiworker (#13527)

* [MXNET-1234] Fix shape inference problems in Activation backward (#13409)

* Provide a failing test for ReLU activation shape inference bug

* Fix Activation backward shape inference

fixes: #13333

* Add softsign Activation to test_gluon.py

* Use activation in GPU if we are using CUDNN and not MKLDNN as it's happening right now

* Don't disable MKLDNN
2018-12-05 10:11:25 -08:00
Vishaal Kapoor d2102faa22 [MXAPPS-1020] Clean up some Sphinx warnings. (#13539) 2018-12-04 18:35:04 -08:00
Da Zheng 4cd3355130 Add graph_compact operator. (#13436)
* add graph_compact.

* fix.

* add doc.

* add tests for graph_compact.

* address comments.

* update docs.

* trigger CI
2018-11-30 23:46:50 -08:00
Da Zheng 388a5f4834 A few operators on graphs stored as CSR (#13290)
* edge_id op csr forward on CPU (#34)

* add node subgraph generator. (#35)

* create DGLSubgraph.

* fix.

* return old eids in node_subgraph.

* accelerate subgraph construction.

* Add neighborhood op (#37)

* add csr_neighborhood op

* update neighborhood sample

* Update csr_neighborhood_sample-inl.h

* Update csr_neighborhood_sample-inl.h

* Update csr_neighborhood_sample.cc

* add graph compact operator.

* fix a bug in dgl_subgraph.

* fix a bug in dgl_graph_compact.

* Update csr sample op (#39)

* add csr_neighborhood op

* update neighborhood sample

* Update csr_neighborhood_sample-inl.h

* Update csr_neighborhood_sample-inl.h

* Update csr_neighborhood_sample.cc

* Update csr_neighborhood_sample-inl.h

* Update csr_neighborhood_sample.cc

* Update csr_neighborhood_sample-inl.h

* remove space.

* move to dgl_graph to contrib.

* move code.

* move edge id.

* fix compilation error.

* add test for subgraph.

* cleanup.

* fix.

* fix.

* fix compile error.

* fix compile error.

* fix compile error.

* fix.

* add operator doc.

* remove graph_compact

* update doc.

* address comments.

* retrigger.

* address comments.

* retrigger

* fix a bug in test.

* retrigger

* add check_format
2018-11-23 17:18:16 -08:00
Rakesh Vasudevan 1aa6a38390 Made fixes to sparse.py and sparse.md (#13305) 2018-11-16 16:46:50 -08:00
vdantu 6ae5b657eb Addressed "dumplicate object reference" issues (#13214) 2018-11-16 14:13:05 -08:00
Haibin Lin f5ba2678f0 Add gauss err function operator (#13229)
* erf

register gpu

* add doc
2018-11-13 16:31:12 -08:00
vdantu f79bb18a06 Addressed sphinx build issue (#13246) 2018-11-13 15:46:14 -08:00
Roshani Nagmote 6d5e3cb42e Fix Sphinx python docstrings (#13160)
* Doc fixes

* addressing feedback

* base_module fix

* fixing cross-reference issues
2018-11-13 09:14:47 -08:00
vdantu 3c5fa16d6f Revert "Sphinx failure fixes" (#13230)
* Revert "Refactor kvstore test (#13140)"

This reverts commit d8d2d6ef3d.

* Revert "[MXNET-793] Virtualized ARMv7 with Qemu CI integration (#13203)"

This reverts commit fd3dedc621.

* Revert "Sphinx failure fixes (#13213)"

This reverts commit 2e4d6c8c10.
2018-11-12 14:38:07 -08:00
vdantu 2e4d6c8c10 Sphinx failure fixes (#13213) 2018-11-11 23:50:38 -08:00
Vandana Kannan e4022426ed Fix Sphinx doc errors (#13170) 2018-11-11 23:43:19 -08:00
Frank Liu 3a6dcc7d3b Fix #13090, Add image.imread to python API doc. (#13176) 2018-11-08 21:07:15 -08:00
Frank Liu 3bbbf6d172 Fix Sphinx document parsing error. (#13195)
Fixes #12935
2018-11-08 21:02:38 -08:00
Chaitanya Prakash Bapat a362df1eb1 [MXNET-1173] Debug operators - isfinite, isinf and isnan (#12967)
* is_finite and is_inf implementation for front-end python api debug operator

* updated unit-tests

* updated test cases and incorporated is_nan function

* solved index out of bounds issue and added comments

* simplified abs function call and added isnan to contrib.py and all debug ops to doc

* changed dimensions, added regular number, assert_equal instead of almost, removed ctx and added data.abs
2018-10-29 11:25:47 -07:00
Gaurav Gireesh 1f971c2b0a [MXNET -1030] Cosine Embedding Loss (#12750)
* COsine Embedding Loss function added

* Added unit tests for Cosine Embedding Loss Function

* Added Latex code for formula for cosine embedding loss

* Fixing document rendering

* Fixing documentation issue

* PR Comments addressed for using F (NDArray or Symbol) to calculate norm, renaming parameters

* Markdown file updated. Added entry for CosineEmbeddingLoss

* Added a line after .. math:: to fix documentation

* Documentation check - pylint fix

* Formula update

* Making the formula simpler for correct rendering incrementally - Update 1

* Making the formula simpler for correct rendering incrementally - Update 2

* Making the formula simpler for correct rendering incrementally - Update 3

* Making the formula simpler for correct rendering incrementally - Update 4

* Making the formula simpler for correct rendering incrementally - Update 5

* Trigger CI

*  making the utility function cosine similarity internal

* Added a test case for label = -1, for dissimilar vectors

* Refactored names of parameters to the loss functions and updated the formula in docstring

* PR comments addressed changes in documentation

* Added random input vectors and labelled tests

* Renaming variables

* Pylint issues fixed

* Resolving conflicts

* Pylint issues fixed

* Style issues fixed trailing whitespaces removed

* Review comment addressed, sample_weight added in the parameter

* Trigger CI

* Reordered Parameter description

* comments addressed - spelling errors

* nit comments addressed

* Trigger CI

* Trugger CI

* Trigger CI

* Trigger CI
2018-10-29 00:16:42 -07:00
Aaron Markham 50028e9586 fix broken docs (#12871) 2018-10-24 16:24:48 -07:00
Haibin Lin 1b96fc9514 getnnz operator for CSR matrix (#12908)
* nnz

* update err msg

* skip nnz test on gpu
2018-10-24 16:14:47 -07:00
Aaron Markham 74638105f5 Fix broken links (#12856) 2018-10-17 21:22:46 -07:00
Gaurav Gireesh efa7d3ad96 [MXNET -1004] Poisson NegativeLog Likelihood loss (#12697)
* PoissonNLLLoss function to compute negative log likelihood loss

* Removing debugging print statements

* Pylint code formatting problems addressed

* Added Stirling approximation for factorial term in the denominator and test case for the same

* Separated the test cases for Flag value for logits and compute_full

* Added comments for package- numpy inclusion and some pylint formatting

* Trigger CI

* Markdown file updted. Added entry for Poissons NLLLoss

* Fixing pending documentation issue

* Documentation docstring changed

* PR Comment to remove extra newline removed.

* Symbol PI corrected

* epsilon spellicng correction

* More unit tests added - testing with mod.score() and mod.fit()

* changed the number of epochs

* PR Comments addressed added mod score tests and a newline

* Empty line added

* Adding hybridized test

* Trigger CI

* Variable names changed
2018-10-12 17:00:38 -07:00
Leonard Lausen 06bf600a75 Adagrad optimizer with row-wise learning rate (#12365)
* Proximal Group Adagrad optimizer

* Remove proximal implementation and rename to GroupAdagrad

* Remove superfluous doc

* Remove superfluous argument
2018-10-11 14:17:05 -07:00
Thom Lane 5d07a07bf6 Added comment to docs regarding ToTensor transform (#12186)
* Corrections to profiling tutorial

Corrected a race condition with stopping profiling. Added mx.nd.waitall to ensure all operations have completed, including GPU operations that might otherwise be missing.

Also added alternative code for context selection GPU vs CPU, that had error before on machines with nvidia-smi.

* Adding note in documentation regarding ToTensor transform.

* Removed line to fix lint error.

* Change to start CI build
2018-09-18 11:06:53 -07:00
Aaron Markham d789101eba Add Python API docs for test_utils and visualization (#12455)
* adding missing python modules as tools folder for docs

* adding missing python modules as tools folder for docs

* adjusted paths after testing build
2018-09-10 16:54:03 -07:00
StephanieYuan 3406845534 Adding python SVRGModule for performing SVRG Optimization Logic (#12376)
Implemented a python SVRGModule for performing SVRG Optimization Logic. This version supports single machine SVRG with single cpu, gpu and multi-gpus. (#12376)
2018-09-10 11:44:15 -07:00
Aaron Markham e290623f62 Sphinx error reduction (#12323)
* new toctrees and index pages to reduce sphinx warnings and errors

* exclude depricated and working dirs; update config

add title, fix render errors, fix inaccurate text

* new toctrees and index pages to reduce sphinx warnings and errors

* exclude depricated and working dirs; update config

add title, fix render errors, fix inaccurate text

* removing unused and unnecessary files (that cause sphinx warnings)

* add c++ index to whitelist

* add more index to whitelist
2018-09-04 11:37:46 -07:00
Haibin Lin d9ea96ad3c Documentation update related to sparse support (#12367)
* Update sparse.md

* Update sparse.md

* Update csr.md

* Update row_sparse.md

* Update train.md
2018-08-27 13:25:57 -07:00
Aaron Markham cb7dc7f390 Update ONNX API docs references (#12317)
* update onnx API references

* update descriptions
2018-08-27 13:24:17 -07:00
Roshani Nagmote cc30fabe2f MXNet to ONNX export tutorial (#12297)
* mxnet to onnx export tutorial added

* test added

* addressing review comment

* comments addressed

* few more fixes

* addressing comments

* addressing comments

* retrigger build
2018-08-23 13:27:27 -07:00
Anirudh 394e5ccc79 Update ONNX docs with the latest supported ONNX version (#11936) 2018-08-01 11:00:01 -07:00
access2rohit c13ce5cb0a [MXNET-378] Adding depth_to_space and space_to_depth operator(Updated) (#11587)
* [MXNET-378] Adding depth_to_space and space_to_depth operator

* fixed lint and windows CPU errors

* compliance with C++ style guiide and address shortcomings in unittests

* fixed documentation and nitpicky suggestions

* added operator references in API docs and removed inplace optimization support

* Added references in symbol.md and ndarray.md. Improved test cases and added block_size check

* Fixing bugs in documentation. Tests now include tensors of random shapes.
2018-07-26 13:44:23 -07:00
Tong He 8a21a06921 update vgg pretrained model (#11860)
* update vgg pretrained model

* Trigger CI

* Trigger CI
2018-07-24 17:06:36 -07:00
Junru Shao 4bb141d682 [MXNET-684] Add cond operator (#11760)
* Initial commit for `Ifelse`

* Address comments

* Rename ifelse to condition

* API change

* Trigger CI

* Rename condition to cond

* Fix lint
2018-07-23 21:18:17 -07:00
Abhinav Sharma e14b5757ee updated docs and hashes for vgg16,16_bn,19,19_bn (#11830) 2018-07-20 17:37:43 -07:00
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
Junru Shao 54632bcb38 [MXNET-626] Add while_loop (#11566)
* Add while_loop

* Avoid input/output overlap for nnvm graph cut

* Add more testcases

* Enhance test 4.2

* Add more complicated testcases; Add testcase for nested loop

* Check unused loop_vars in while_loop

* Add testcases for RNN

* Make lint happy

* Make lint happy

* Address TODOs

* Fix flaky test for while_loop

* Address comments

* Improve docstring

* Improve error message

* Add benchmark code

* Update benchmarks

* Allow sparse types

* Make max_iterations default to None

* Add while_loop to docs/api/python/{symbol|ndarray}/contrib.md

* Pad imperative while_loop so that it has the same shape with the symbolic one

* Add example result into the example section

* Remove unused class member

* Rename unittest to test_contrib_control_flow.py

* Update docstring

* Update docstring

* Trigger CI

* Change threshold for assert_almost_equal

* Trigger CI

* Address comments from szha

* Rewrite benchmark code

* Fix sphinx warning
2018-07-18 17:09:10 -07:00
Hang Zhang 3ae4331654 [MXNET-614] Adding Synchronized Batch Normalization (#11502)
* sync batch norm

* global rank and barrier

* lint

* cpplint

* pylint

* doc

* add ref

* customized barrier

* cpplint

* get rid of pthread

* address comments

* warning

* pylint

* gpu unitest

* gpu 0

* mv to cpu test

* Revert "mv to cpu test"

This reverts commit 24543c995e855b0c4efa6c66461d4b7b7bb56878.

* ndev = 2

* debuging

* sum prod

* lint

* contrib, ngpu

* code style

* code style

* forward backward

* test

* cpu test

* fix deconstruction

* doc indent

* doc

* doc

* address comments

* typo

* asnumpy
2018-07-13 23:05:28 -07:00
Abhinav Sharma db5d3506ac Adding models to example list and ONNX API page (#11632)
* added arcface example

* updated onnx.md with arcface

* updated onnx.md with imagenet models
2018-07-11 11:20:42 -07:00
Hao Jin 52dcb19aeb [MXNET-392] Support for a bunch of unary functions for csr matrices (#11559)
* support for relu(csr) = csr

* add support for sign(csr) = csr

* add support for round

* add support for ceil(csr)=csr

* add support for floor(csr)=csr

* add support for trunc(csr)=csr

* add support for fix(csr)=csr

* add support for sqrt(csr)=csr

* add support for cbrt(csr)=csr

* add support for log1p(csr)=csr

* add support for expm1(csr)=csr

* add support for sin(csr)=csr

* add support for tan(csr)=csr

* add support for arcsin(csr)=csr

* add support for arctan(csr)=csr

* add support for degrees(csr)=csr

* add support for radians(csr)=csr

* add support for sinh(csr)=csr

* add support for tanh(csr)=csr

* add support for arcsinh(csr)=csr

* add support for arctanh(csr)=csr

* restore original check_sparse_function func

* add test for fluent and doc

* address code review
2018-07-06 09:57:30 -07:00
Da Zheng 030fbc3c7b [MXNET-432] Add Foreach (#11531)
* Test input a graph.

* Update foreach to execute the subgraph.

* print inputs/outputs in foreach.

* Remove print.

* add test code for foreach.

* exec foreach outside the engine.

* Implements forward of foreach.

* Add support for variable numbers of inputs and outputs.

* Add a python wrapper for foreach.

* Fix the order of inputs.

* add test with lstm.

* hide C version of foreach.

* fix a bug temporarily.

* Test free variables.

* change for the new interface of InputGraph attribute.

* Add attribute to the subgraph.

* Handle free variables.

* Get all input symbols of a subgraph.

* Fix shape, dtype and storage inference.

* reorganize the output of foreach.

* Add a gluon RNN unroll with symbol foreach.

* print unnecessary print.

* have imperative and symbolic foreach.

* Fix an error after moving foreach.

* Fix imperative foreach

* Fix a minor problem.

* Use CachedOp to execute subgraph.

* update TODO.

* make foreach op use FStatefulComputeEx.

TODO we need to change stateful executor to handle subgraph.

* Add backward.

* Fix bugs.

* enable backward test in lstm.

* Fix a bug in foreach backward for free variables.

* change for the new CachedOp.

* Detect the backward computation.

* Fix bugs in foreach.

* fix tests.

* update tests.

* check state shape.

* enable nested foreach.

* remove print.

* fix a bug in test.

* handle infer storage type for backward.

* address comments.

* address comments.

* move some common functions out.

* address comments.

* fix lint.

* Fix lint.

* add doc.

* undo modification in imperative.h

* add doc and remove example code.

* fix lint.

* fix lint.

* Fix lint.

* make nd.foreach and sym.foreach consistent.

* fix compile error.

* address comments.

* update.

* check for loop only works for dense arrays.

* move control flow op out of nn/

* fix include.

* add a test in gluon.

* work for GPU.

* small fix.

* remove subgraph_name

* create loop state for reuse in the future.

* move code.

* Revert "remove subgraph_name"

This reverts commit 977f5624ad0b0dedb9dcb8629f975afc56bb1e1a.

* cut graph.

* rename new var nodes.

* Fix tests.

* Fix bugs caused by ctypes (#29)

* Add save/load json in testcases for foreach (#30)

* support subgraph in stateful executor.

* Fix compilation.

* fix a bug when a subgraph has variable nodes.

* Fix a bug of getting symbols.

* copy var nodes.

* Fix getting op states.

* fix lint error.

* address comments.

* fix lint error.

* simplify the execution of subgraph in the main thread.

* fix lint error.

* avoid waiting for computation in each iteration.

* reuse cached op for inference.

* share memory across mini-batches.

* reuse memory.

reuse memory between iterations in inference.
reuse memory between mini-batches in training.

* add tests for multiple batches.

* remove entry.

* add benchmark for foreach.

* benchmark large batch size.

* Fix the benchmark for GPU.

* address comments.

* update shape/dtype/storage inference.

* update contrib API docs.

* support nested foreach.

* use a single CachedOp for all iterations.

* use large dim.

* update benchmark.

* update benchmark.

* update benchmark.

* update benchmark.

* return symbol arrays correctly in MXSymbolCutSubgraph.

* return symbol arrays in MXSymbolGetInputSymbols.

* fix lint error.

* use cachedop to infer storage in backward.

* fix scala API.

* update comments.

* fix scala.

* fix test.

* fix attribute name.

* move benchmark.

* fix the mapping of operator inputs/outputs and subgraph inputs/outputs.

* add tests for dtype/shape inference.

* reorganize tests.

* fix a bug of cutting NodeEntry.

When two node entries refer to the same output of a node, we should
create only one var node for these two node entries.

* fix lint error.

* handle the case that outputs are inputs.

* handle the case that inputs aren't used.

* handle the case without output data.

* fix a bug in foreach backward.

* fix a bug when there isn't output data.

* Fix lint error.

* test diff Gluon RNN cells.

* test all symbol RNN cells.

* adjust the test precision.

* Fix a bug in getting a list of variable names.

We can't get a list of variable names from a hashtable. The order can't
be guaranteed. Python2 and Python3 output different orders.

* fix lint error.

* Test 1D array.

* fix a bug when subgraph inputs and outputs share NDArray.

* fix.

* fix

* add comments.
2018-07-02 15:26:51 -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