1. 15 12月, 2022 1 次提交
    • S
      [PHI decoupling] Remove fluid imports from MKLDNN code (#48981) · 4d5a5533
      Sławomir Siwek 提交于
      * fix wrong handler name
      
      * mkldnn_engine -> onednn_engine
      
      * remove fluid/errors.h imports
      
      * remove fluid/enforce.h imports
      
      * remove note and unnecessary import
      
      * remove fluid/pretty_log.h imports
      
      * remove fluid/place.h imports
      
      * remove fluid/data_layout_transform.h imports
      
      * remove fluid/device_context.h imports
      
      * remove mkldnn_helper code
      
      * remove fluid/mkldnn_reuse.h imports
      
      * pretty_log import
      4d5a5533
  2. 14 12月, 2022 1 次提交
  3. 13 12月, 2022 1 次提交
  4. 06 12月, 2022 2 次提交
    • Z
      Clear extra input (Bias, ResidualData) in OpMaker of conv2d (#47579) · 0a2dfa38
      zyfncg 提交于
      * delete Bias and ResidualData in OpMaker of conv2d
      
      * delete extra input of conv3d
      
      * refactor pass of conv_bias_fusion
      
      * fix mkldnn dependency
      
      * fix mkldnn compile
      
      * fix test_conv_bias_mkldnn_fuse_pass
      
      * police some code
      
      * remove useless log
      
      * fix analyzer_vit_ocr_tester
      
      * fix conv_activation_mkldnn_fuse_pass
      
      * fix test_analyzer_ocr
      
      * add fused_conv_sig
      
      * fix performence regression
      
      * fix performance regression
      0a2dfa38
    • S
      [PHI] Migrate elementwise_(add/mul) kernels (#48625) · 7575d37c
      Sławomir Siwek 提交于
      * remove fluid code
      
      * init
      
      * typo
      
      * fix merge conflicts
      7575d37c
  5. 28 11月, 2022 1 次提交
  6. 22 11月, 2022 1 次提交
    • S
      Some residualdata fixes (#48118) · 7bbdbe5b
      Sylwester Fraczek 提交于
      Removed ResidualData and Bias from ExtraAttrProperties because it's not an attribute.
      Removed bug with checking for ResidualData attribute in matmul_elementwise_add_fuse_pass
      Removed residualData from list of matmul outputs in cpu_bfloat16_pass.cc because it's input
      Co-authored-by: NTomasz Socha <tomasz.socha@intel.com>
      7bbdbe5b
  7. 21 11月, 2022 1 次提交
    • S
      add fc-residual quantization (#46917) · fed0ed34
      Sylwester Fraczek 提交于
      * add fc-residual quantization
      
      * revert removal of check for use_mkldnn
      
      * fix bug
      
      * add disable_logs
      
      * review fix
      
      call twice AreScalesPresntForNodes instead of if-else
      
      * rewrite residual input to output
      
      * revert fc mkldnn taking residual data
      
      * format fix
      
      * fix LoDTensor->DenseTensor
      
      * LoDTensor->DenseTensor
      
      * output->input
      
      * revert changes to unsupported script
      
      revert changes to unsupported script
      
      * remove fc residualdata from output blocklist in cpu_bfloat16_pass.cc
      fed0ed34
  8. 18 11月, 2022 1 次提交
  9. 16 11月, 2022 1 次提交
  10. 15 11月, 2022 2 次提交
    • J
      Added optimization pass for oneDNN layernorm kernel (#47782) · 519e7426
      jakpiase 提交于
      * optimization for ln
      
      * fix
      
      * added output to gpd
      
      * added formatting
      
      * fix
      519e7426
    • S
      mkldnn directory cleanup (#47779) · 8a339d24
      Sławomir Siwek 提交于
      * cleanup unused code
      
      * unify is_int8 is_bfloat16
      
      * Simplify matmul_v2 FWD kernel
      
      * remove RunKernel methods
      
      * remove import namespace
      
      * remove headers
      
      * clean fluid/phi cross imports
      
      * remove fluid axpy_handler
      
      * delete fluid methods
      
      * activations
      
      * OneDNNMemDesc
      
      * MKLDNNFormatForSize
      
      * MatchShapeToLayout
      
      * MKLDNNMemoryFormat
      
      * MKLDNNFormat
      
      * ReorderMKLDNNHandler
      
      * to_void_cast
      
      * review suggestions
      
      * interpolate
      
      * remove fluid depedency
      8a339d24
  11. 08 11月, 2022 2 次提交
    • S
      Migrate old C++ unit tests to Python framework (#47006) · 0c9f09b8
      Sławomir Siwek 提交于
      * softplus+activation
      
      * fc + elementwise_add test refactored
      
      * rename MKLDNN to OneDNN
      
      * fc+activation tests refactored
      
      * remove softplus ut
      
      * whitespace
      
      * whitespace
      
      * codestyle
      
      * codestyle
      
      * add more cases to fc+act
      
      * remove softplus+hard_sigmoid pass
      
      * remove softplus + hard_sigmoid UT
      
      * add approximate for gelu
      
      * swish beta range
      
      * new codestyle
      
      * reduce number of tests
      0c9f09b8
    • P
      Split quant (#47449) · 130db92a
      Paulina Gacek 提交于
      * Split kernel registered, tests for uint/int added
      
      * Split quantized
      
      * Split output scales calculated only once
      
      * NearestInterp test fix reversed
      
      * DequantizeOutputs corrected
      130db92a
  12. 07 11月, 2022 2 次提交
  13. 04 11月, 2022 1 次提交
  14. 03 11月, 2022 2 次提交
    • Y
      Fix ComputePropagateScalesMkldnnPass of MKLDNN (#47574) · 5fc92943
      yeliang2258 提交于
      * add constant_folding_pass pass for mkldnn int8
      
      * update UpdateScaleOpInOutScales
      5fc92943
    • S
      [PHI] Migrate softmax kernel (#47339) · b8ae3858
      Sławomir Siwek 提交于
      * add extra attr property set
      
      * add type_info for all context
      
      * add onednn context to all context
      
      * fix context compile error
      
      * simplify conv kernel args
      
      * pass runtime attr into dev_ctx
      
      * fix marco error
      
      * clear conv_grad_kernel extra args
      
      * merge conv_grad_grad into conv_grad
      
      * clear conv2d_grad_grad extra attrs
      
      * remove redundant imports
      
      * migrate softmax
      
      * clear yaml and eager extra attr
      
      * fix conv1d error
      
      * change to thread local
      
      * fix npu compile failed
      
      * try to fix windows compile failed
      
      * add conv2d onednn phi kernel
      
      * fix ci bugs (#36)
      
      * fix compile bugs (#38)
      
      * fix extra input transform bug (#39)
      
      * support dynamic created attr (#40)
      
      * reset extra info gen code
      
      * rm conv_grad_grad kernel
      
      * reimpl pass attr adapting
      
      * add int attr support
      
      * remove vector inputnames creating
      
      * merge dev
      
      * fix map at error
      
      * adjust attribute
      
      * adapt funcs to PHI
      Co-authored-by: NChen Weihang <chenweihang@baidu.com>
      Co-authored-by: NYuanRisheng <yuanrisheng@baidu.com>
      b8ae3858
  15. 27 10月, 2022 2 次提交
  16. 26 10月, 2022 2 次提交
  17. 24 10月, 2022 1 次提交
  18. 20 10月, 2022 1 次提交
  19. 18 10月, 2022 1 次提交
    • S
      FC + activation fuse passes (#45183) · b7a23adb
      Sławomir Siwek 提交于
      * git
      
      * style
      
      * leave default relu in kernel
      
      * style
      
      * cleanup FCMKLDNN pattern
      
      * merge conflicts
      
      * update develop
      
      * update develop
      
      * add const
      
      * rename to oneDNN and adjust attributes
      
      * whitespace
      b7a23adb
  20. 13 10月, 2022 2 次提交
    • Y
      Fix quantize model deploy bugs when using MKLDNN (#45920) · 561fd8c8
      yeliang2258 提交于
      * fix immutable op quantize bugs
      
      * fix
      
      * fix build bug
      
      * fix test
      
      * notest,test=inference
      
      * fix ppyoloe acc drop bugs
      
      * fix test
      
      * fix test
      
      * add test
      
      * fix
      
      * fix
      
      * fix test
      
      * fix refined name bug
      
      * fix test
      
      * bias fix
      
      * fix matmul weight dequant bug
      
      * re-ci
      
      * fix tester
      
      * fix test
      
      * fix tester
      
      * update weight dequantize func
      
      * update code
      
      * update test for converage
      
      * update test
      
      * update cmake
      
      * update cmakelist
      
      * update code
      
      * rerun ci
      
      * remove useless code
      561fd8c8
    • J
      Add unsigned int8 scale propagation (#46378) · c72b3bfa
      joanna.wozna.intel 提交于
      * Add unsigned int8 propagation
      
      * Add or modify unit tests
      
      * Correct concat scale checking
      
      * Apply review suggestions
      
      * Corrections
      c72b3bfa
  21. 11 10月, 2022 1 次提交
  22. 10 10月, 2022 2 次提交
  23. 30 9月, 2022 1 次提交
  24. 29 9月, 2022 1 次提交
  25. 28 9月, 2022 1 次提交
    • C
      Remove the declaration of using Tensor in framework/tensor.h (#46432) · e12a905e
      Chen Weihang 提交于
      * remove needless using tensor
      
      * remove needless using tensor
      
      * resolve conflict
      
      * replace tensor using
      
      * fix format error
      
      * revert needless changing
      
      * fix rocm and npu compile error
      
      * fix cinn compile error
      
      * fix format error
      
      * fix mkldnn format error
      
      * fix mkldnn format error
      
      * fix cinn compile error
      
      * fix cinn compile error
      
      * fix cinn compile error
      
      * resolve conflict
      e12a905e
  26. 22 9月, 2022 1 次提交
    • S
      [PHI] Migrate gelu kernels (#45596) · 567e2fc8
      Sławomir Siwek 提交于
      * gaussian random
      
      * mkldnn to onednn renaming
      
      * fix merge conflicts
      
      * remove fluid code
      
      * onednn renaming
      
      * gelu fwd
      
      * sort activations
      
      * gelu gradient
      
      * remove unused macros
      
      * merge conflicts
      
      * fix merge conflicts
      
      * remove extra contraint from gelu op
      567e2fc8
  27. 05 9月, 2022 1 次提交
    • Y
      New format quant model support for MKLDNN (#45416) · 4e4f4586
      yeliang2258 提交于
      * support onnx format quantized model
      
      * update code
      
      * add test
      
      * add test
      
      * fix
      
      * fix test
      
      * fix cmake
      
      * update code
      
      * change scale file path to calibration file path
      
      * update code
      
      * update code
      
      * fix build bug
      
      * fix build bugs
      
      * fix
      
      * fix
      4e4f4586
  28. 30 8月, 2022 1 次提交
    • Z
      Remove extra attribute in OpMaker (#44310) · fe321f9a
      zyfncg 提交于
      * add runtime config in phi
      
      * add runtime attr for op desc and op
      
      * fix no proto error
      
      * adjust opdesc set_attr impl
      
      * try to remove conv_op extra attrs
      
      * add init runtime attr map
      
      * change extra header path
      
      * fix runtime_attr
      
      * fix trace_op
      
      * fix bug of pass
      
      * fix merge conflict
      
      * fix dygraph attrs
      
      * fix bug of pass
      
      * fix dygraph bug
      
      * fix unittest module
      
      * delete extra attr default
      
      * fix dropout kernel
      
      * polish code
      
      * fix extra output of instance_norm
      
      * fix merge confilct
      
      * fix op_desc bug
      
      * add extra attr in yaml for conv3d_transpose
      
      * don't remove extra input and output
      
      * fix save_inference_model
      
      * fix bug of batch_norm
      
      * revert some change
      
      * polish log
      
      * polish code
      
      * add code comment
      Co-authored-by: NChen Weihang <chenweihang@baidu.com>
      fe321f9a
  29. 22 8月, 2022 2 次提交
  30. 12 8月, 2022 1 次提交
    • S
      Offload calculations from matmul op to fuse pass (#44941) · acb78ea2
      Sławomir Siwek 提交于
      * remove v2_transpose_reshape
      
      * matmul_transpose_reshape
      
      * reshape_transpose_matmul
      
      * Add int8 support for matmulV2
      
      * restore ut
      
      * adjust old ut
      
      * restore parallel UT ruels
      
      * remove mkldnn code from base ops
      
      * move enforces to pass
      
      * remove duplicated functions
      
      * delete duplicated enforces
      
      * feedback from review
      
      * add comments to variables
      
      * enable eltwise support
      
      * dynamic attribute
      
      * remove fusepass tests from op test
      
      * remove fuse pass cases from op test
      
      * revert introduction of dynamic attributes
      
      * style
      Co-authored-by: Nwozna <joanna.wozna@intel.com>
      acb78ea2