1. 31 1月, 2020 1 次提交
    • M
      [DNNL] Fix accuracy in INT8 FC (#22404) · 269db0d1
      Michał Gallus 提交于
      * Enable quantize to reorder to nchw as well
      
      * Correct FC MKL-DNN input dim requirements to accept 3D
      
      * Improve DNNL FC format, error and 3D input handling
      
      test=develop
      
      * Improve error checking in FC
      
      test=develop
      
      * Improve PADDLE_ENFORCE messages in fc-related files
      
      * Remove data layout attribute from obligatory pass args
      
      test=develop
      
      * Fix message in fc_mkldnn_pass to be logically correct
      
      test=develop
      269db0d1
  2. 10 12月, 2019 1 次提交
    • A
      MKL-DNN 1.0 Update (#20162) · e81f0228
      Adam 提交于
      * MKLDNN v1.0 rebase to Paddle 1.6
      test=develop
      
      * Add hacky paddle::string::to_string() implementation
      
      * vectorize<int64-t>() -> vectorize() cleanup
      test=develop
      
      * PADDLE_ENFORCE and void_cast fixes
      test=develop
      
      * Rebase changes
      test=develop
      
      * Cosmetics
      test=develop
      
      * Delete MKL from mkldnn.cmake
      test=develop
      
      * CMake debug commands
      test=develop
      
      * Delete MKLDNN_VERBOSE and rebase fixes
      test=develop
      
      * Rebase fixes
      test=develop
      
      * Temporarily disable int8 resnet101 vgg16 and vgg19 tests
      test=develop
      
      * Add libmkldnn.so.1 to python setup
      test=develop
      
      * Add libmkldnn.so.1 to inference_lib cmake after rebase
      test=develop
      
      * Post rebase fixes + FC int8 changes
      test=develop
      
      * Fix LRN NHWC
      test=develop
      
      * Fix NHWC conv3d
      test=develop
      
      * Windows build fix + next conv3d fix
      test=develop
      
      * Fix conv2d on AVX2 machines
      test=develop
      e81f0228
  3. 29 11月, 2019 1 次提交
  4. 08 11月, 2019 1 次提交
    • J
      Add transpose2 INT8 for mkl-dnn (#19424) · 77c20835
      joanna.wozna.intel 提交于
      * Add transpose2 INT8 for mkl-dnn
      
      test=develop
      
      * Fix test_transpose_int8_mkldnn
      
      test=develop
      
      * Revert "Merge branch 'develop' into transpose_int8_mkldnn_2"
      
      This reverts commit 34011bdb, reversing
      changes made to 2ce6473f.
      
      * Revert "Revert "Merge branch 'develop' into transpose_int8_mkldnn_2""
      
      This reverts commit 23754dd7.
      
      * Add template to TransposeMKLDNNHandler
      
      test=develop
      
      * Resolve conflict
      
      test=develop
      
      * Restore get_size and refactor
      
      test=develop
      77c20835
  5. 07 11月, 2019 1 次提交
  6. 18 10月, 2019 1 次提交
  7. 17 10月, 2019 1 次提交
    • J
      [MKL-DNN] Added mkl-dnn cache clearing when creating Executor instance (#20241) · a1cd27f1
      Jacek Czaja 提交于
      * - Flushing mkl-dnn cache
      
      test=develop
      
      - Disabled clearing cache for LoadModel
      
      - Added clearing of mkl-dnn cache when Executor is created
      
      test=develop
      
      - Do not clear for GPU places
      
      test=develop
      
      - compilation fix
      
      test=develop
      
      * - Moved clearing of mkl-dnn cache in destructor of executor
      
      test=develop
      
      * - Compilation fix
      
      test=develop
      
      - Reverted conditional clearing of mkl-dnn cache in Executors's
        destructor
      
      test=develop
      
      - compilation fix
      a1cd27f1
  8. 26 9月, 2019 1 次提交
  9. 24 9月, 2019 1 次提交
    • J
      - ReImplemented pooling fwd mkldnn (#19911) · 5b07ca9c
      Jacek Czaja 提交于
      - First implementation of BWD and FWD of pooling mkl-dnn
      
      - Compilation fix
      
      - Fix
      
      - Fix
      
       - Fix
      
      - Fix to crash
      
      - Compilation fix
      
      - Combined AcquireBacward with Fwd
      
      test=develop
      5b07ca9c
  10. 20 9月, 2019 1 次提交
    • J
      [MKL-DNN] LRN refactoring (#19798) · 619c797a
      Jacek Czaja 提交于
      - LRN mkl-dnn kernel refactor
      
      test=develop
      
      - compilation fix
      
      - Another compilation fix
      
      - Compilation fix
      
      - another compilation fix
      
      - compilation fix
      
      - Crash fix
      
      - optional LRN mkldnn workspace
      
      - Added mid allocation
      
      - Workaround for tests
      
      - Removed gradient from is_test ut
      
      - Removed mid for inference
      
      - Reverted LRN mid removal for is_test
      
      - PADDLE_ENFORCE adjusted
      
      - Rebase to templatization commit
      
      - Compilation fix
      
      - compilation fix
      
      test=develop
      
      - lint
      
      test=develop
      
      - Fix to crash
      
      - Rebase to recent codebase
      
       - lin
      
      - lint
      
      - compilation fix
      619c797a
  11. 19 9月, 2019 2 次提交
  12. 17 9月, 2019 1 次提交
  13. 14 9月, 2019 1 次提交
  14. 12 9月, 2019 1 次提交
  15. 10 9月, 2019 1 次提交
  16. 03 9月, 2019 1 次提交
  17. 01 9月, 2019 1 次提交
    • J
      [MKL-DNN] Refactoring Softmax (#19312) · cef95ee3
      Jacek Czaja 提交于
      * - First set of modifications
      
      - Compilation fixes
      
      - compilation fix
      
      - Another compilation fix
      
      - Moved AcquireSoftmaxPrimitiveDescriptor call into handler
      
      - MKL-DNN Softmax PD refactor
      
      test=develop
      
      - Compilation fix
      
      test=develop
      
      - another compilation fix
      
      - cosmetcis
      
      test=develop
      
      - Compilation fix
      
      - Fix to crash when softmax backward is created
      
      * - Fixes after review of softmax refactoring
      
      test=develop
      cef95ee3
  18. 30 8月, 2019 1 次提交
    • J
      [MKL-DNN] Fix to face model on AVX512 platforms (#19282) · ecd9f330
      Jacek Czaja 提交于
      - Refactor step 1
      
      - Compilation fix
      
      - Yet another compilation fix
      
      - Even more compilation fix
      
      - Lint fixes
      
      test=develop
      
      - Removed deprectaed PADDLE_ENFORCE occurance
      
      test=develop
      
      - Candidate fix to BN forward
      
      - Lint fixes
      
      test=develop
      
      - Refactoring in data_layout_transform
      
      - compilation fix
      
      - Another comppilation fix
      
      - Step further into darkness
      
      - Yet another compilation fix
      
      - Yet another compilation fix
      
      - missing header
      
      - compilation fix
      
      - Added MKLDNN -> Paddle conversion in fetch op
      
      test=develop
      
      - Compilation fix
      
      test=develop
      
      - Lint
      
      test=develop
      
      - Mul fix
      
      - Fix to MKLDNN MUL op and Elementwise MUL UT
      
      test=develop
      
      - Workaround for diffrent weights with groups representation Paddle vs
        MKL-DNN.
      
      test=develop
      
      - Candidate fix for 5D convolution with groups
      
      - Refactor of fix for conv3d and conv2d in fetch op
      
      test=develop
      
      - Compilation fix
      
      - Still same compilation fix
      
      - Compilation fix
      
      - Compilation fix
      
      - Reverted refactoring of fixes
      
      - Adapted test_conv2d_int8_mkldnn so it exects data in NCHW format
        not NHWC
      
      test=develop
      
      - minor fix in UT
      
      test=develop
      
      - Lint fixes
      
      test=develop
      ecd9f330
  19. 15 8月, 2019 1 次提交
  20. 01 8月, 2019 1 次提交
  21. 30 7月, 2019 1 次提交
  22. 25 7月, 2019 1 次提交
  23. 23 7月, 2019 1 次提交
    • J
      [MKL-DNN] Extended LRN with reusing via Acquire API (#18675) · 95c1816e
      Jacek Czaja 提交于
      test=develop
      
      - compileation fix
      
      - Yet another compilation fix
      
      - Even yet another compilation fix
      
      - Surprise! Again compilation fix
      
      - lint fixes
      
      test=develop
      
      - Fix to workspace acquire of LRN
      
      test=develop
      
      - Fix to hash of BWD LRN
      
      test=develop
      
      - fix to lrn BWD PD acquire
      
      test=develop
      
      - Fixing LRN PD creation
      
      test=develop
      
      - cosmetic fix in comment
      
      test=develop
      
      - Fixes after review
      
      test=develop
      95c1816e
  24. 19 7月, 2019 1 次提交
  25. 16 7月, 2019 1 次提交
    • J
      [MKL-DNN] Reimplemented pool2d mkl-dnn to use Acquire API (#18585) · 71d883b8
      Jacek Czaja 提交于
      * - Added partial draft of pooling acquire
      
      - Workspace support
      
      - compilation fix
      
      - Added draft of pooling backward reimplementation
      
      - Segfault fix
      
      - reverted 'any' for diff_dst crewation in pooling
      
      - Lint fixes
      
      test=develop
      
      - lint fixes
      
      test=develop
      
      - Further lint fixes
      
      test=develop
      
      * - Fixes after review
      
      test=develop
      
      * - Lint fixes
      
      test=develop
      
      * - Even more lint fixes
      
      test=develop
      71d883b8
  26. 10 7月, 2019 1 次提交
  27. 09 7月, 2019 1 次提交
  28. 02 7月, 2019 1 次提交
  29. 01 7月, 2019 1 次提交
  30. 28 6月, 2019 1 次提交
  31. 27 6月, 2019 1 次提交
    • J
      [MKL-DNN] Extending reusing to Elementwise_add_mkldnn op (#18146) · c2efdfd5
      Jacek Czaja 提交于
      * - Reusing of reuder used in elementwise_add_mkldnn
      
      - Added MKL-DNN sum prim reusing
      
      test=develop
      
      - Compilation fixes
      
      test=develop
      
      - Yet another compilation fix
      
      test=develop
      
      - Yet another compilation fix
      
      test=develo
      
      - Yet another linking fix
      
      test=develop
      
      - Final compilation fix
      
      test=develop
      
      - lint fixes
      
      test=develop
      
      - Lint fixes
      
      test=develop
      
      * - Fixes after review
      
      test=develop
      c2efdfd5
  32. 11 6月, 2019 1 次提交
    • J
      [MKL-DNN] Thread-Safety for MKL-DNN reusing Part 1 (#17965) · 84bb45c0
      Jacek Czaja 提交于
      * - removed is_reusing_
      
      * - Added TID to keys for reusing apart from softmax PD
      
      * - compilation fix
      
      * - Yet another compilation fix
      
      * - Batch Norm and Conv adapted
      
      * - Fix to softmax MT
      
      * - Fixes to MT code of MKL-DNN
      
      * - Lint fixes
      
      test=develop
      84bb45c0
  33. 10 6月, 2019 1 次提交
  34. 04 6月, 2019 1 次提交
  35. 22 5月, 2019 1 次提交
    • G
      Enable the convolution/relu6(bounded_relu) fusion for FP32 on Intel platform. (#17130) · 2281ebf0
      guomingz 提交于
      * Relu6 is the bottleneck op for Mobilenet-v2. As the mkldnn supports the conv/relu6 fusion, we implement it fusion via cpass way. Due to the int8 enabling for this fusion will be supported in MKLDNN v0.20, so this PR is focused on the fp32 optimization.
      
      Below table shows the benchmark(FPS) which measured on skx-8180(28 cores)
      Batch size | with fusion | without fusion
      -- | -- | --
      1 | 214.7 | 53.4
      50 | 1219.727 | 137.280
      
      test=develop
      
      * Fix the format issue
      
      test=develop
      
      * Add the missing nolint comments.
      
      test=develop
      
      * Fix the typos.
      
      test=develop
      
      * Register the conv_brelu_mkldnn_fuse_pass for the MKLDNN engine.
      
      test=develop
      
      * Adjust the indentation.
      
      test=develop
      
      * Add the test_conv_brelu_mkldnn_fuse_pass case.
      
      test=develop
      
      * Slightly update the code per Baidu comments.
      Let the parameter definition embedded into the code.
      That's will make the code easy to understand.
      
      test=develop
      2281ebf0
  36. 16 4月, 2019 1 次提交
    • J
      [MKL-DNN] Added reusing of primitive descriptors (fp32) (#16667) · 87a44b11
      Jacek Czaja 提交于
      * - Reuse of conv PD
      
      - conv transpose pd reused
      
      - Added PD reusing of softmax and Batch Norm
      
      - Refactoring and removal of not needed routines of mkl-dnn ops
      
      test=develop
      
      - Fix to reusing conv
      
      test=develop
      
      - Lint fixes
      
      test=develop
      
      - Further lint fixes
      
      test=develop
      
      - Lint  fixes
      
      test=develop
      
      - lint fixes
      
      test=develop
      
      - Lint workaround
      
      test=develop
      
      * - Fix after review on including boost as third party header
      
      test=develop
      
      * - Fix after review. Name change to something more descriptive
      
      test=develop
      87a44b11
  37. 28 3月, 2019 1 次提交
    • J
      [MKL-DNN] Tensor modifications revert (#16462) · 26323274
      Jacek Czaja 提交于
      * Revert "[MKL-DNN] Fix to crash of Transformer when mkldnn is to be used (#16233)"
      
      This reverts commit 13816dd4.
      Apart from enabling transformer for MKL-DNN
      
      * Revert "- MKL-DNN pooling updated to set_prim_desc"
      
      This reverts commit c63f6b20.
      
      Conflicts:
      	paddle/fluid/operators/mkldnn/concat_mkldnn_op.cc
      
      * Revert "[MKL-DNN] MKL-DNN specific Tensor modification (#15429)"
      
      test=develop
      
      This reverts commit dec9cf53.
      
      * - concat compilation fix
      
      - lint
      
      test=develop
      
      - Lint fixes
      
      test=develop
      
      - Lint fixes
      
      test=develop
      
      - Fix Transpose MKLDNN op
      
      test=develop
      26323274
  38. 27 2月, 2019 1 次提交
    • X
      INT8 Pool kernel Key Creation Optimization. (#15883) · 6724be2b
      xiaolil1 提交于
      * Optimize key creation of INT8 pool kernel to improve the peformance of ResNet-50 and MobileNet, especially for latency.
      test=develop
      
      * Optimize key creation of pool fp32 grad.
      test=develop
      6724be2b
  39. 25 2月, 2019 1 次提交
    • J
      [MKL-DNN] MKL-DNN specific Tensor modification (#15429) · dec9cf53
      Jacek Czaja 提交于
      * - Implemented draft of primitive desc keeping in Tensor
      
      test=develop
      
      - TransposeMKLDNNHandler::AcquireSrcMemory was reimplemented
      
      - Added nchw and nc formats setting for sake of compatiblity
      
      Fixed unit tests
      
      - Worakaround to problem with 5D data in conv
      
      - Added 3D and 1D MKL-DNN formats for name handles for tensor
      
      test=develop
      
      - Fix to UTs
      
      test=develop
      
      - Conv fp32 op was updated
      
      Cosmetic fixes
      
      test=develop
      
      - tensor mkldnn cosmetics
      
      test=develop
      
      - Moved most of mkl-dnn specific code from Tensor to mkl-dnn utils
      
      * - Lint fixes
      
      test=develop
      
      * - setting prim dec in Tensor , sets also layout to kMKLDNN
      
      test=develop
      
      * - Moved creation of prim desc totally out of Tensor
      
      test=develop
      
      * - Cosmetic fixes adter review
      
      test=develop
      dec9cf53