This repository was archived by the owner on Jul 1, 2024. It is now read-only.
Commit 77e2ab8
Add MXNet Backend (#59)
* Adding MXNet backend template. Adding all basic Variable and Tensor operations (#1)
* add activation functions
* add activation functions
* fix some legacy
* fix some legacy
* cross entropy
* cross entropy
* fix name scoping introduced in 2.0
* fix name scoping introduced in 2.0
* Add dropout, l2_normalization, random_normal/uniform/binomial (#2)
* remove the logic for hacking RNN
* remove the logic for hacking RNN
* add pooling with utils
* add pooling with utils
* minor
* lint and name scope fix
* fix access protected var
* fix add neighbor, removed __eq__ in KerasSymbol
* fix eval function, unittest for placeholder and variable
* add unittests
* fix bug
* fix bug
* fix
* add some temporary fixes in mxnet backend. undo change to the pytest.ini
* mxnet_backend graph fix, layer support (#3)
* add activation functions
* fix some legacy
* cross entropy
* fix name scoping introduced in 2.0
* Add dropout, l2_normalization, random_normal/uniform/binomial (#2)
* remove the logic for hacking RNN
* add pooling with utils
* add activation functions
* fix some legacy
* cross entropy
* fix name scoping introduced in 2.0
* remove the logic for hacking RNN
* add pooling with utils
* minor
* lint and name scope fix
* fix access protected var
* fix add neighbor, removed __eq__ in KerasSymbol
* fix eval function, unittest for placeholder and variable
* add unittests
* fix bug
* fix bug
* fix
* add some temporary fixes in mxnet backend. undo change to the pytest.ini
* Keras function not working is a known issue, add skip in the test
* fix random_uniform/constant
* fix legacy randomize methods
* Fix MXNet backend operator bugs. Enabled Keras backend tests
* add bias
* Add Amazon copyrights to License (#6)
* fix
* fix
* fix backend for mlp
* fix context management, add optimizers
* minor change
* undo changes on example
* fix eval
* minor cleanup
* fix some property usage
* fixing AlphaDroupout, not finished yet
* add mx model instantiate
* modifies training model construct logic, fix some tests. fix reshape layer.
* minor fix
* fix bias_add
* more fix on Dense and bias_add
* In progress commit
* fix comment
* small fix
* remove pytest.skip in conv3d. But it failed with theano backend in my workspace though.
* Add conv2d and in_topk operator for mxnet backend (#11)
* Skip BatchDot tests for Theano backend. (#12)
* BatchDot, Basic Batchnorm, Fix BiasAdd, Fix Conv2D, CodeCleanup (#14)
* Fix Conv2d shape issues and enable Conv2D UTs
* Remove redundant mxnet only unit tests
* Adding batch_dot, remove deconv, code comments and cleanup
* Remove buggy conv1d implementation
* Fix CR comments. Fix lint check issues
* Move mxnet specific code from keras engine to mxnet_backend. (#15)
* Move MXNet optimizers from keras optimizers to mxnet backend (#16)
* Fix bug in reshape. Minor rename to avoid local conflicts
* Bug fixes and enable/skip all Keras tests for mxnet backend (#21)
* test results - 374 passed, 235 skipped in 114.44 seconds
* fix/skip keras tests - tests/integration_tests, tests/keras/applications
* fix/skip keras tests - tests/keras/engine/test_topology
* fix/skip keras tests - tests/keras/engine/test_training
* fix/skip keras tests - tests/keras/legacy/
* fix/skip keras tests - tests/keras/preprocessing
* fix/skip keras tests - tests/keras/utils/
* Fix CR comments
* Fix issues in zero_padding. Fix/Enable tests/layers/convolutional_test
* Add momentum to batchnorm. Enable/skip tests in layers/core, local, merge, noise, normalization
* Skip RNN tests in keras/tests/layers/recurrent_test, wrappers_test
* Fix bug in spatial padding, enable/skip tests in loss,optimizers,callback,loss_weighting, model_saving
* Fix mxnet backend multi-gpu training (#31)
Fixing bug for mxnet backend to use multiple gpus.
* Fix performance issue - Batchnormalization, Conv operator (#35)
* Fix default axis for batchnorm layer for channels_first data_format
* Performance improvement by avoiding kernel transpose in conv operation for channels_first format
* Fix model - architecture, weights and both, load and save. (#36)
* Prepare initial version of mxnet related documentation in keras (#38)
* Skip failing unit tests for unsupported functionality in mxnet backend
* Fix pep tests reported by CI
* Use pytest module skip, revert kernel_shape logic
* remove data_format param from bias_add API
* Allow Predict() without compile for mxnet backend and enable tests.
contributor - roywei@
* Fix bug - mxnet backend should not override keras config data_format to channels_first. Only warn of low performance
* Conv3d() operator implementation for Keras2.0 using MXNet backend (#40)
* conv3d implementation for keras2.0 as MXNet backend
* conv3d implementation/testing for keras2.0 using MXNet backend
* keeping -n option in pytest.ini file
* fixed comments given by Sandeep
* Add Conv1D support for MXNet backend (#44)
* Add Conv1D support for MXNet backend
* Fix CR comments
* Conv2d transpose (#47)
* add conv2d_transpose
* conv2d transpose for both channels, enabled test case
* add detailed comments and examples, fix style issue
* enable test case in topology
* Enable performance optimization for conv operators with MXNet backend. Make MXNet default backend with this branch (#48)
* Fix conv kernel shape bug for TF backend. (#50)
* Add support for keras multi_gpu_model() API with MXNet backend (#49)
* Add support for keras multi_gpu_model() API with MXNet backend. Autoset GPU0 context on GPU machine
* Fix typo
* Add SAME padding mode support for pooling operator. (#51)
* Add rnn() operator for MXNet backend with unrolling and masking feature (#46)
* Adding rnn() operator in Keras2.0 with MXNet as backend with unroll=True and Masking=True/False and enabled relevant testcases. Also, modified couple of operators.
* Modified comments
* Added comments to a method
* Enable categorical crossentropy testcases and made minor changes
* Modified message
* nit
* Added detail description of handling variable length input in RNN
* Skip conv2d_transpose and conv3d_transpose test-case for MXNet backend and minor changes in rnn()
* Adamax and NAdam optimizer for MXNet backend (#54)
* Add Adamax optimizer for MXNet backend
* Fix lr and adamax params
* Add Nadam optimizer for mxnet backend
* Add Conv3d transpose (#52)
* conv3d tranpose, enabled test case
* update kernel shape
* replace conv2d_transpse conv3d_transpose with convnd_transpose
* update value errors with MXNet Backend info, fix typo
* add check for conv3d transpose only supports gpu with cudnn
* update context check
* diable conv3d transpose test
* fix typo in comment
* Adding MXNet backend template. Adding all basic Variable and Tensor operations (#1)
* add activation functions
* add activation functions
* fix some legacy
* fix some legacy
* cross entropy
* cross entropy
* fix name scoping introduced in 2.0
* fix name scoping introduced in 2.0
* Add dropout, l2_normalization, random_normal/uniform/binomial (#2)
* remove the logic for hacking RNN
* remove the logic for hacking RNN
* add pooling with utils
* add pooling with utils
* minor
* lint and name scope fix
* fix access protected var
* fix add neighbor, removed __eq__ in KerasSymbol
* fix eval function, unittest for placeholder and variable
* add unittests
* fix bug
* fix bug
* fix
* add some temporary fixes in mxnet backend. undo change to the pytest.ini
* mxnet_backend graph fix, layer support (#3)
* add activation functions
* fix some legacy
* cross entropy
* fix name scoping introduced in 2.0
* Add dropout, l2_normalization, random_normal/uniform/binomial (#2)
* remove the logic for hacking RNN
* add pooling with utils
* add activation functions
* fix some legacy
* cross entropy
* fix name scoping introduced in 2.0
* remove the logic for hacking RNN
* add pooling with utils
* minor
* lint and name scope fix
* fix access protected var
* fix add neighbor, removed __eq__ in KerasSymbol
* fix eval function, unittest for placeholder and variable
* add unittests
* fix bug
* fix bug
* fix
* add some temporary fixes in mxnet backend. undo change to the pytest.ini
* Keras function not working is a known issue, add skip in the test
* fix random_uniform/constant
* fix legacy randomize methods
* Fix MXNet backend operator bugs. Enabled Keras backend tests
* add bias
* Add Amazon copyrights to License (#6)
* fix
* fix
* fix backend for mlp
* fix context management, add optimizers
* minor change
* undo changes on example
* fix eval
* minor cleanup
* fix some property usage
* fixing AlphaDroupout, not finished yet
* add mx model instantiate
* modifies training model construct logic, fix some tests. fix reshape layer.
* minor fix
* fix bias_add
* more fix on Dense and bias_add
* In progress commit
* fix comment
* small fix
* remove pytest.skip in conv3d. But it failed with theano backend in my workspace though.
* Add conv2d and in_topk operator for mxnet backend (#11)
* Skip BatchDot tests for Theano backend. (#12)
* BatchDot, Basic Batchnorm, Fix BiasAdd, Fix Conv2D, CodeCleanup (#14)
* Fix Conv2d shape issues and enable Conv2D UTs
* Remove redundant mxnet only unit tests
* Adding batch_dot, remove deconv, code comments and cleanup
* Remove buggy conv1d implementation
* Fix CR comments. Fix lint check issues
* Move mxnet specific code from keras engine to mxnet_backend. (#15)
* Move MXNet optimizers from keras optimizers to mxnet backend (#16)
* Fix bug in reshape. Minor rename to avoid local conflicts
* Bug fixes and enable/skip all Keras tests for mxnet backend (#21)
* test results - 374 passed, 235 skipped in 114.44 seconds
* fix/skip keras tests - tests/integration_tests, tests/keras/applications
* fix/skip keras tests - tests/keras/engine/test_topology
* fix/skip keras tests - tests/keras/engine/test_training
* fix/skip keras tests - tests/keras/legacy/
* fix/skip keras tests - tests/keras/preprocessing
* fix/skip keras tests - tests/keras/utils/
* Fix CR comments
* Fix issues in zero_padding. Fix/Enable tests/layers/convolutional_test
* Add momentum to batchnorm. Enable/skip tests in layers/core, local, merge, noise, normalization
* Skip RNN tests in keras/tests/layers/recurrent_test, wrappers_test
* Fix bug in spatial padding, enable/skip tests in loss,optimizers,callback,loss_weighting, model_saving
* Fix mxnet backend multi-gpu training (#31)
Fixing bug for mxnet backend to use multiple gpus.
* Fix performance issue - Batchnormalization, Conv operator (#35)
* Fix default axis for batchnorm layer for channels_first data_format
* Performance improvement by avoiding kernel transpose in conv operation for channels_first format
* Fix model - architecture, weights and both, load and save. (#36)
* Prepare initial version of mxnet related documentation in keras (#38)
* Skip failing unit tests for unsupported functionality in mxnet backend
* Fix pep tests reported by CI
* Use pytest module skip, revert kernel_shape logic
* remove data_format param from bias_add API
* Allow Predict() without compile for mxnet backend and enable tests.
contributor - roywei@
* Fix bug - mxnet backend should not override keras config data_format to channels_first. Only warn of low performance
* Conv3d() operator implementation for Keras2.0 using MXNet backend (#40)
* conv3d implementation for keras2.0 as MXNet backend
* conv3d implementation/testing for keras2.0 using MXNet backend
* keeping -n option in pytest.ini file
* fixed comments given by Sandeep
* Add Conv1D support for MXNet backend (#44)
* Add Conv1D support for MXNet backend
* Fix CR comments
* Conv2d transpose (#47)
* add conv2d_transpose
* conv2d transpose for both channels, enabled test case
* add detailed comments and examples, fix style issue
* enable test case in topology
* Enable performance optimization for conv operators with MXNet backend. Make MXNet default backend with this branch (#48)
* Fix conv kernel shape bug for TF backend. (#50)
* Add support for keras multi_gpu_model() API with MXNet backend (#49)
* Add support for keras multi_gpu_model() API with MXNet backend. Autoset GPU0 context on GPU machine
* Fix typo
* Add SAME padding mode support for pooling operator. (#51)
* Add rnn() operator for MXNet backend with unrolling and masking feature (#46)
* Adding rnn() operator in Keras2.0 with MXNet as backend with unroll=True and Masking=True/False and enabled relevant testcases. Also, modified couple of operators.
* Modified comments
* Added comments to a method
* Enable categorical crossentropy testcases and made minor changes
* Modified message
* nit
* Added detail description of handling variable length input in RNN
* Skip conv2d_transpose and conv3d_transpose test-case for MXNet backend and minor changes in rnn()
* Adamax and NAdam optimizer for MXNet backend (#54)
* Add Adamax optimizer for MXNet backend
* Fix lr and adamax params
* Add Nadam optimizer for mxnet backend
* Add Conv3d transpose (#52)
* conv3d tranpose, enabled test case
* update kernel shape
* replace conv2d_transpse conv3d_transpose with convnd_transpose
* update value errors with MXNet Backend info, fix typo
* add check for conv3d transpose only supports gpu with cudnn
* update context check
* diable conv3d transpose test
* fix typo in comment
* Rebase to latest Keras - April 3, 2018
* Add build badges
* Fix multi_gpu API bug for CPU. Fix PEP. (#64)
* Fix multi_gpu API bug for CPU. Fix PEP.
* fix embedding layer bug (#61)
* fix embedding bug
* addressed comments, enabled more test cases
* add keras test
* reduce line length
* fix style, add blank lines
* Benchmark (#55)
* add conv2d_transpose
* conv2d transpose for both channels, enabled test case
* add detailed comments and examples, fix style issue
* add benchmark scripts for resnet and imagenet data
* combine scripts
* fix args
* fix num of gpus
* update log
* multi_gpu_model only support tf
* add benchamrk scripts for synthetic data
* update read me and scripts
* add mxnet traing result table
* update on readme
* add cifar10 dataset and enable various resnet layers
* fix compile for mxnet multiple gpu
* update callbacks
* update synthetic data script, add credits
* undo new line
* update readme, addressed pr comments
* update readme
* benchmark scripts style fix (#66)
* style fix
* remove unused import, fix line too long
* adrressed pr comments
* Added keras util API for conversion of data tensor from channels_last to channels_first using MXNet backend (#65)
* Added keras util API for conversion of data tensor from channels_last to channels_first using MXNet backend
* Modified comments
* Addressed review comments and made the API more generic accross backends
* Removed shape check
* Modified comments
* Added edge cases
* moved helper method as nested
* Added RNN benchmark scripts (#69)
* Added RNN benchmark scripts
* Fixed new line in bash script
* Removed different backend code and modified comments
* Removed spacing
* Automated the wikiText2 download script
* Added dataset_util functionality to have more flexible code
* Added minor comments
* modified minor comments
* Fixed the multi-gpu context (#68)
* Update benchmark result (#70)
* update benchmark result
* update result
* simplify folder structure
* add image result
* add note
* add note1 parent ef13db0 commit 77e2ab8
File tree
69 files changed
+7165
-177
lines changed- benchmark
- benchmark_result
- scripts
- models
- docs/templates
- keras
- backend
- engine
- layers
- utils
- tests
- integration_tests
- keras
- applications
- backend
- engine
- layers
- legacy
- preprocessing
- utils
- wrappers
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
69 files changed
+7165
-177
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
24 | 28 | | |
25 | 29 | | |
26 | 30 | | |
| |||
38 | 42 | | |
39 | 43 | | |
40 | 44 | | |
41 | | - | |
| 45 | + | |
42 | 46 | | |
43 | 47 | | |
44 | 48 | | |
| |||
57 | 61 | | |
58 | 62 | | |
59 | 63 | | |
60 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
61 | 69 | | |
62 | 70 | | |
63 | 71 | | |
| |||
78 | 86 | | |
79 | 87 | | |
80 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
81 | 92 | | |
82 | 93 | | |
83 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
15 | 23 | | |
16 | 24 | | |
17 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
9 | 12 | | |
10 | | - | |
| 13 | + | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
| |||
117 | 120 | | |
118 | 121 | | |
119 | 122 | | |
| 123 | + | |
120 | 124 | | |
121 | 125 | | |
122 | 126 | | |
| |||
155 | 159 | | |
156 | 160 | | |
157 | 161 | | |
158 | | - | |
| 162 | + | |
159 | 163 | | |
160 | 164 | | |
161 | 165 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
Whitespace-only changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
Whitespace-only changes.
0 commit comments