- Added hash function inside of MKLDNN softmax op to be used as handle for primitives stroing in a
context
- Style fixes to softmax mkldnn op
- Fixes after review
- Coding style
- Fix to style
- style fixes
- style fix
- style fixes
- Fix to cody style check
- Rephrasing a comment
fix t obroken merge
Fixes to rebase
Conflicts:
benchmark/fluid/models/machine_translation.py
cmake/external/mkldnn.cmake
paddle/fluid/operators/softmax_mkldnn_op.cc
- Bumped revision of MKL-DNN up to have softmax backward primitive
- Added choosing MKLDNN softmax grad operator
- First reuse of softmax backward
- Reinvented reusing for softmax
- Fix to crash in reinvented reuse
- Clang format fixes
- Clang format fixes
- Improved softmax mkldnn reuse mechanism
- clang format fixes
- Fix to broken merge
- Fix
* Add MKLDNN layout support in Paddle
Add MKLDNN layout in Paddle so that MKLDNN friendly memory layout
can be used in MKLDNN enabled OP kernel. Before this commit, NCHW
is hardcode to be used in all MKLDNN op kernels. As a result,
non-optimized execution path is selected in MKLDNN primitive which
bring worse performance.
Besides framework change, three MKLDNN OP kernels were updated
for using new MKLDNN layout. They are conv/pool2d/batch_norm.
Other MKLDNN OP kernels need be also updated in similar way to
achieve best performance.
* Add MKLDNN layout support in activation OP
* Don't populate layout from input to output when kMKLDNN in
* Refine pool mkldnn op kernel
* MKLDNN layout
* Remove the inferitance from tensor file
* MKLDNN layout: refactoring
* Remove additional #define to register new operator
* Prepare mkldnn tests to work with layout
Do not use ctor
* Reduce line of codes.
* We can use virtual function for Maker now.
* The implementation does not care what maker holds, it is easier to
refactor later.
removed diagnostic
- Added Unit tests for Softmax MKLDNN Forward
Added fix for div by 0 to happen in cross_entropy backward
Conflicts:
paddle/fluid/operators/CMakeLists.txt
- Cosmetic fixes to SoftMax MKLDNN fluid operator
Added misssing softmax fluid operator file
Disabled MKLDNN softmax operator by default
Fix to softmax op unittest merge
clang_formater fixes
clang_formatter fixes
- Name changing of softmax mkldnn operator to maintin consistency
across codebase
- updated comment
fix to comment