8 Commits
Author SHA1 Message Date
nihui 492a5fde03 add MSRAPrelu initializer for cpp-package (#9121)
* add MSRAPrelu initializer for cpp-package

hello, this change adds the MSRAPrelu initializer for cpp-package, which follows the python code
```
//     def __init__(self, factor_type="avg", slope=0.25):
//         magnitude = 2. / (1 + slope ** 2)
//         super(MSRAPrelu, self).__init__("gaussian", factor_type, magnitude)
//         self._kwargs = {'factor_type': factor_type, 'slope': slope}
```

* change indent

* declare explicit
2018-01-09 12:59:23 -08:00
Kellen Sunderland d2a856a3a2 Restored some copyright attribution that were accidentally removed. (#8688)
* Revert "add"

This reverts commit b0fe391419bb49c7484ba04ee7171c42ae0e46d0.

* Adding Back the License Headers
2017-11-18 21:16:47 -08:00
Mu Li 251ae71a20 Add license header (#7379)
* add

* add .py and ci

* fix pylint

* update
2017-08-08 16:36:23 -07:00
Eric Junyuan Xie ed190957bb Refactor Stateful operator and custom op (#6928)
* refactor create layer

* fix

* refactor custom op

* fix

* fix

* fix

* fix

* fix OpState

* remove superfluous infershape

* fix

* fix

* fix lint

* fix

* fix

* fix

* Update CMakeLists.txt

* delete

* fix

* fix scala
2017-07-12 10:04:40 -07:00
Xin Li 4544c5827f [cpp-package] Add monitor, optimizers, metrics and bug fixes (#6033)
* [cpp-package]Support MSVC and python 3

* Update docs

* [cpp-package]Add monitor

* Force UTF-8 encoding in MSVC

* [cpp-package] Automatically deploy the compiled library

* [cpp-package] Add RMSProp, Adam, AdaGrad, AdaDelta

* [cpp-package] Fix initializers

* Fix lint

* [cpp-package] Update Makefile

* [cpp-package] Fix constructor order

* Add MAE, MSE, PSNR metrics

* trigger op_map when loading symbols from file, to force ops to be initialized

* Add missing headers

* [cpp-package] Add inline to satisfy ODR

* Fix cuda compilation on windows

* [cpp-package] Update CMakeLists
2017-05-17 09:57:37 -07:00
Xin Li 517069c52c [cpp-package] Add C++ basic tutorial and build instruction (#5971)
* Add C++ basic tutorial and build instruction

* Remove binaries

* Fix lint

* Avoid sign-compare
2017-04-25 09:57:01 -07:00
Chris Olivier a5abd79c0b Caffe without the patch, cpp-package fixed also with Caffe plugin (#5573)
* PEP8 indentation fix

* Remove executable flag

* Remove executable flags

* Fixing cpp-package including problems with caffe converter

* Fix warnings

* Remove need for caffe patch for caffe plugin

* Ignore cmake paths, remove rebuildable op.h for cpp-package

* cpp-package examples fixed. Makefile and CMake of op.h and examples added.

* cpp-package examples fixed. Makefile and CMake of op.h and examples added.

* Fix source file

* Better example.mk

* Turn off caffe by default

* lint fixes

* Trying to figure out how to fix submodules

* nohub problem on travis so force retry

* Edited test to just run make instead of obsolete make example

* Fix cpp-package op.h bootstrapping with CMake

* Build tweaking cpp-package

* Lint fixes

* op.h generator

* FIx cpp-package for latest merge from master

* Fix lint

* static link

* link whole static lib

* Trigger another build attempt

* Trigger another build attempt

* Add caffe plugin support (disabled until dependencies can be added to build machine)

* Add cufft library

* win32 cufft library

* don't link unit tests as static

* Add include for rebuildable protobuf header caffe.pb.h
2017-03-30 20:13:36 -07:00
Xin Li 21b2da07f6 Integrate cpp package (#5251)
* Copy mxnet.cpp to cpp-package sub directory

* Add missing type name declaration for nnvm::Tuple<dmlc::optional<int>>

* Add trigger to update operation wrapper in cpp package when building mxnet

* Add test to travis scripts

* Disable op generation on windows
2017-03-22 11:55:51 +08:00