1. 21 2月, 2023 1 次提交
    • X
      【prim】Layer norm (#50422) · 2f4763ee
      xiaoguoguo626807 提交于
      * fix composite mean op map
      
      * fix composite check output
      
      * init layer_norm
      
      * init layer_norm
      
      * map output from composite rule to origin op
      
      * add dropout op map
      
      * add input map check
      
      * polish log
      
      * modify rules
      
      * success test_forward
      
      * modify test without cinn
      
      * modify cinn test
      
      * modify cinn test
      
      * except fp64
      
      * except fp64
      
      * delete flatten
      
      * delete unused change
      
      * review
      
      * pass cpu test
      
      * code style
      
      * delete flatten fp16 error
      
      * modify flatten test
      
      ---------
      Co-authored-by: Ncyber-pioneer <chenzhuo@tju.edu.cn>
      2f4763ee
  2. 20 2月, 2023 1 次提交
  3. 16 2月, 2023 1 次提交
    • Z
      Add mean composite rule (#50298) · f7f67b72
      zqw_1997 提交于
      * beta
      
      * small commit
      
      * add batch_norm composite rule
      
      move composite test case
      
      remove unuseful var
      
      add composite op blacklist
      
      * small change v2
      
      * finish the test_composite_mean and test_composite_mean_grad
      
      * add ops assertion to the tests
      
      * add cinn test
      
      * fix the error and inappropriate usage in func: mean_composite
      
      * remove the ref of outer lib in primtives.py
      
      * modify sample code of reduce_sum
      
      * fix composite mean op map
      
      * modify testcases to test more float type
      
      * remove cpu float16 test
      
      * cinn test fix
      
      * remove reduce_max
      
      * change the name sum to sum_x
      
      * change the use of reduce_sum to sum
      
      ---------
      Co-authored-by: Ncyber-pioneer <chenzhuo@tju.edu.cn>
      f7f67b72
  4. 15 2月, 2023 1 次提交
    • C
      fix composite op map (#50397) · ff86aeab
      cyber-pioneer 提交于
      * map output from composite rule to origin op
      
      add mean layer_norm dropout op map
      
      add input map check
      
      composite softmax support input shape []
      
      * composite softmax support shape []
      
      * polish log
      
      * solve conflict
      
      * polish code
      
      * polish op map output
      
      * add check dtype
      ff86aeab
  5. 14 2月, 2023 2 次提交
    • M
      b85af464
    • G
      Add gelu composite rule (#50295) · c364f41d
      GGBond8488 提交于
      * add gelu composite rule
      
      * use full replace fill_constant
      
      * change the form of calculation
      
      * remove float16 test for composite gelu
      
      * reformate code
      
      * remove float16 test case
      
      * add forwad with prim and backward without prim test
      
      * add float16 test for composite gelu and add high dims test
      
      * add float16 test case and high dims test
      
      * shield float16 and cpu test case
      
      * increase train step to 10 in test cinn prim gelu
      
      * replace pow to multiply
      c364f41d
  6. 09 2月, 2023 1 次提交
  7. 07 2月, 2023 1 次提交
  8. 20 1月, 2023 1 次提交
  9. 17 1月, 2023 1 次提交
  10. 13 1月, 2023 1 次提交
  11. 30 12月, 2022 1 次提交
  12. 29 11月, 2022 1 次提交
  13. 09 11月, 2022 1 次提交
  14. 08 11月, 2022 2 次提交
  15. 03 11月, 2022 1 次提交
  16. 01 11月, 2022 1 次提交
  17. 26 10月, 2022 1 次提交
    • C
      fix slice_assign_p (#47324) · 17a03629
      Charles-hit 提交于
      * fix slice_assign_p jvp and transpose
      
      * modify code style
      
      * modify test_jvp_and_transpose for slice_assign_p
      
      * modify code style
      
      * add unit test
      17a03629
  18. 23 10月, 2022 1 次提交
  19. 19 10月, 2022 1 次提交
    • C
      Support uniform api and sigmoid api in new AD (#46960) · af4bdede
      Charles-hit 提交于
      * support uniform api in new ad
      
      * add unit test for uniform_random_p
      
      * resolve conflict
      
      * fix uniform_random orig2prim
      
      * fix primrules
      
      * remove ShapeTensor and ShapeTensorList input in uniform_random_p op and add sigmoid orig2prim rules
      af4bdede
  20. 17 10月, 2022 1 次提交
    • N
      [CodeStyle][py2] remove `compat` module (to_bytes) (#47035) · 198c7993
      Nyakku Shigure 提交于
      * [CodeStyle][py2] remove `compat` module (to_bytes)
      
      * remove some unused imports
      
      * clean up to_bytes definition and unittests
      
      * Revert "clean up to_bytes definition and unittests"
      
      This reverts commit e726539e1768172a411ff60e63fab82f164343cf.
      
      * use `b` prefix instead of `encode()`
      198c7993
  21. 12 10月, 2022 1 次提交
  22. 10 10月, 2022 1 次提交
  23. 28 9月, 2022 1 次提交
  24. 27 9月, 2022 1 次提交
  25. 26 9月, 2022 2 次提交
  26. 22 9月, 2022 1 次提交
    • Fix the En docs (delete some expression like 'This OP') (#46165) · 3a928a8c
      张春乔 提交于
      * 1. Delete some expression like 'This Op'
      2. remove import numpy as np
      
      * test=document_fix
      
      * fix eg; test=document_fix
      
      * fix 'import numpy' cases; test=document_fix
      
      * fix 'import numpy' cases; test=document_fix
      
      * fix some docs; test=document_fix
      
      * delete raise; test=document_fix
      
      * add some introduction; test=document_fix
      
      * add some introduction; test=document_fix
      
      * test=document_fix
      
      * Fix ’note‘ format; test=document_fix
      
      * Fix Returns of cholesky; test=document_fix
      
      * Fix Example format; test=document_fix
      
      * Fix det; test=document_fix
      
      * Fix eig; test=document_fix
      
      * Fix eigh; test=document_fix
      
      * Fix eigh; test=document_fix
      
      * Apply suggestions from code review;test = document_fix
      Co-authored-by: NNyakku Shigure <sigure.qaq@gmail.com>
      
      * Apply suggestions from code review;test = document_fix
      Co-authored-by: NNyakku Shigure <sigure.qaq@gmail.com>
      
      * Apply suggestions from code review;test = document_fix
      Co-authored-by: NNyakku Shigure <sigure.qaq@gmail.com>
      
      * test=document_fix
      
      * test=document_fix
      
      * KLDiv;test=document_fix
      
      * norm example code; test=document_fix
      
      * revert python/paddle/fluid/**/*
      
      * revert python/paddle/distributed/spawn.py
      
      * revert python/paddle/fluid/*
      
      * fix a `Note` format
      
      * Fix inv; test=document_fix
      
      * Fix lu; test=document_fix
      
      * Fix lu_unpack; test=document_fix
      
      * Fix matrix_power; test=document_fix
      
      * Fix multi_dot; test=document_fix
      
      * Fix solve; test=document_fix
      Co-authored-by: NNyakku Shigure <sigure.qaq@gmail.com>
      3a928a8c
  27. 16 9月, 2022 1 次提交
  28. 14 9月, 2022 3 次提交
  29. 01 9月, 2022 1 次提交
  30. 23 8月, 2022 1 次提交
  31. 20 8月, 2022 1 次提交
  32. 16 8月, 2022 1 次提交
  33. 08 8月, 2022 1 次提交
  34. 26 7月, 2022 1 次提交
  35. 18 7月, 2022 1 次提交