* [MXNET-703] TensorRT runtime integration
Co-authored-by: Clement Fuji-Tsang <caenorst@hotmail.com>
Co-authored-by: Kellen Sunderland <kellen.sunderland@gmail.com>
* correctly assign self._optimized_symbol in executor
* declare GetTrtCompatibleSubsets and ReplaceSubgraph only if MXNET_USE_TENSORRT
* add comments in ReplaceSubgraph
* Addressing Haibin's code review points
* Check that shared_buffer is not empty when USE_TENSORRT is set
* Added check that TensorRT binding is for inference only
* Removed redundant decl.
* WIP Refactored TRT integration and tests
* Add more build guards, remove unused code
* Remove ccache report
* Remove redundant const in declaration
* Clean Cmake TRT files
* Remove TensorRT env var usage
We don't want to use environment variables with TensorRT yet, the
logic being that we want to try and have as much fwd compatiblity as
possible when working on an experimental feature. Were we to add
env vars they would have to be gaurenteed to work in the future until
a major version change. Moving the functionality to a contrib call
reduces this risk.
* Use contrib optimize_graph instaed of bind
* Clean up cycle detector
* Convert lenet test to contrib optimize
* Protect interface with trt build flag
* Fix whitespace issues
* Add another build guard to c_api
* Move get_optimized_symbol to contrib area
* Ignore gz files in test folder
* Make trt optimization implicit
* Remove unused declaration
* Replace build guards with runtime errors
* Change default value of TensorRT to off
This is change applies to both TensorRT and non-TensorRT builds.
* Warn user when TRT not active at runtime
* Move TensorRTBind declaration, add descriptive errors
* Test TensorRT graph execution, fix bugs
* Fix lint and whitespace issues
* Fix typo
* Removed default value for set_use_tensorrt
* Improved documentation and fixed spacing issues
* Move static exec funcs to util files
* Update comments to match util style
* Apply const to loop element
* Fix a few namespace issues
* Make static funcs inline to avoid compiler warning
* Remove unused inference code from lenet5_train
* Add explicit trt contrib bind, update tests to use it
* Rename trt bind call
* Remove documentation that is not needed for trt
* Reorder arguments, allow position calling
* a user friendly way to use g2c in module
* also support g2c to be list
* update
* update test
* g2c example
* Update matrix_factorization_model_parallel.py
* address comments
* update
* update
* remove fc
* debug g2c
* Revert "debug g2c"
This reverts commit caabdc5c5fa8618d3ed4db2cbad4e807b63c211e.
* update
* move g2c example to another folder
* update
* readme
* Removing unnecessary copies when copying data to device
* Making python linter happy
* Really making pylint happy this time
* Using slice_axis
* Making pylint happy
* 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
* 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.
* 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
* 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
* 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
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