1. 24 6月, 2022 1 次提交
    • Y
      [Phi]Change Copy from Kernel to basic component utils (#43622) · 2739bd73
      YuanRisheng 提交于
      * perfect copy
      
      * deal with conflict
      
      * deal with conflict
      
      * fix compile bugs
      
      * fix unittest bugs
      
      * change code format
      
      * deal with conflict
      
      * modify code by review
      
      * fix ce bugs
      
      * fix ce bugs
      
      * add lo
      
      * perfect code format
      
      * deal with conflicts
      2739bd73
  2. 05 6月, 2022 1 次提交
  3. 14 4月, 2022 1 次提交
  4. 01 4月, 2022 1 次提交
    • C
      [Phi] Move softmax with cross entropy kernel into phi (#40832) · e6ec98fe
      Chen Weihang 提交于
      * add cross_entropy_with_softmax phi kernel
      
      * remove softmax_with_cross_entropy kernel
      
      * add softmax_with_cross_entropy grad kernel
      
      * remove original op kernel
      
      * refine cross entropy impl
      
      * fix pointer error
      
      * revert kernel cu change
      
      * fix xpu failed
      
      * fix cinn failed
      
      * fix npu failed
      
      * add forward sig
      
      * add check_nan_inf for pt kernel
      
      * remove repeat cmake item
      
      * fix unittest error
      e6ec98fe
  5. 18 3月, 2022 1 次提交
  6. 25 2月, 2022 3 次提交
  7. 20 2月, 2022 1 次提交
  8. 11 2月, 2022 1 次提交
  9. 09 2月, 2022 1 次提交
  10. 20 12月, 2021 1 次提交
    • F
      optimize softmax with cross entropy soft label (#32387) · f8955602
      Feng Xing 提交于
      softmax_with_cross_entropy optimization with soft label. This PR includes optimization of
          "SoftmaxWithCrossEntropySoftLabel" : compute log_softmax and then compute loss.
          "CrossEntropySoftLabel" : compute loss with softmax as input.
      These optimization includes following technics:
          read data to buffer with vectorization
          compute max and sum in warp
          fixed loop size with macro
      Performance (computation time):
          softmax_with_cross_entropy_0 (forward) : -40.1%
          softmax_with_cross_entropy_0 (backward): -41%
      f8955602
  11. 03 12月, 2021 1 次提交
  12. 01 11月, 2021 1 次提交
  13. 11 9月, 2021 1 次提交
  14. 10 9月, 2021 2 次提交
  15. 05 6月, 2021 1 次提交
  16. 21 5月, 2021 1 次提交
  17. 06 5月, 2021 1 次提交
  18. 02 4月, 2021 1 次提交
  19. 16 3月, 2021 1 次提交
  20. 11 3月, 2021 1 次提交
  21. 10 3月, 2021 1 次提交
  22. 03 3月, 2021 1 次提交
  23. 25 2月, 2021 1 次提交
  24. 23 2月, 2021 2 次提交
  25. 16 11月, 2020 1 次提交
    • G
      Fix gradients with ignore_idx in softmax_with_cross_entropy (#28622) · 110febdc
      Guo Sheng 提交于
      * Fix gradients with ignore_idx in softmax_with_cross_entropy.
      test=develop
      
      * Fix gradients with ignore_idx in softmax_with_cross_entropy on cpu.
      Remove softmax_with_cross_entropy from op_threshold_white_list.
      test=develop
      
      * Fix test_softmax_cross_entropy_op.py.
      test=develop
      110febdc
  26. 12 10月, 2020 1 次提交
  27. 16 7月, 2020 1 次提交
  28. 11 7月, 2020 1 次提交
  29. 23 2月, 2020 1 次提交
  30. 20 12月, 2019 1 次提交
  31. 03 12月, 2019 1 次提交
  32. 18 11月, 2019 1 次提交
  33. 09 5月, 2019 1 次提交
  34. 07 5月, 2019 1 次提交
    • K
      Softmax_cross_entropy op add axis (#16806) · a71d8fdb
      Kaipeng Deng 提交于
      * add attr axis infershape. test=develop
      
      * add CUDA kernel. test=develop
      
      * fix unittest. test=develop
      
      * fix unittest for soft_label. test=develop
      
      * fix fp16 unittest. test=develop
      
      * remove comment code. test=develop
      
      * refine test for axis. test=develop
      
      * add python api. test=develop
      
      * fix doc. test=develop
      
      * fix fp16 unittest. test=develop
      
      * fix ngraph test. test=develop
      
      * fix ENFORCE for test_imperative_transformer. test=develop
      
      * fit for ngraph test. test=develop
      
      * fix after rebase develop. test=develop
      
      * fix doc. test=develop
      
      * fix API.spec. test=develop
      
      * fix test_layers. test=develop
      
      * fix format. test=develop
      a71d8fdb
  35. 06 5月, 2019 1 次提交
  36. 21 4月, 2019 1 次提交
    • Z
      Refine model gpu memory (#16993) · 1202d3fc
      Zeng Jinle 提交于
      * speedup gc and inplace softmax_with_cross_entropy_grad
      test=develop
      
      * refine models gpu mem
      Merge skip vars and warning messages of mem opt
      remove relu mem opt
      test=develop
      
      * follow comments
      test=develop
      1202d3fc