1. 06 9月, 2023 1 次提交
  2. 17 8月, 2023 1 次提交
  3. 12 5月, 2023 1 次提交
    • X
      【Prim】support higher order autodiff for dy2static+composite (#53171) · b73594b4
      Xiaoxu Chen 提交于
      * [Dy2St]Fix x grad names when high order gradient
      
      * Polish error msg
      
      * Add inputs var to backward in dy2st
      
      * Fix error
      
      * Get grad names for backward API
      
      * Fix save load
      
      * Polish code
      
      * Add ut
      
      * [prim] fix not support optional grad bugs in higher order autodiff
      
      * [prim] remove duplicate fill_any_like caused by infershape_for_composite
      
      * fix _strip_grad_suffix_ bugs in higher-order autodiff
      
      * [prim] create output for test_static_prim.cc
      
      ---------
      Co-authored-by: N0x45f <wangzhen45@baidu.com>
      b73594b4
  4. 26 4月, 2023 1 次提交
  5. 25 4月, 2023 1 次提交
    • Y
      [PHI]Add flags macro for PHI (#52991) · 22e96bde
      YuanRisheng 提交于
      * add flags for phi
      
      * fix compile bugs
      
      * fix ci bugs
      
      * fix inference bugs
      
      * fix cinn' bugs
      
      * fix cinn bugs
      
      * perfect code according comment
      
      * fix ci bugs
      
      * fix ci bugs
      22e96bde
  6. 11 4月, 2023 1 次提交
  7. 06 4月, 2023 1 次提交
  8. 28 3月, 2023 1 次提交
    • X
      【prim】change layernorm_grad rules (#51879) · 789aac8a
      xiaoguoguo626807 提交于
      * support layer_norm prim and cinn test
      
      * enable cinn test
      
      * fix merge conflict
      
      * polish input for check_output_with_place
      
      * fix merge conflict
      
      * add more test case
      
      * fix merge conflict
      
      * polish test case
      
      * polish op_test
      
      * change ln_g rules
      
      * modify scale is none case
      
      * modify scale is none case
      
      * add public_python_api for check prim
      
      * modify setoutputgrad and fp64bug
      
      * add todo & delete log
      
      * delete Single***varname
      
      * delete get varname
      
      * modify FP64 bug
      
      * delete op test
      
      * recover
      
      * fix conflict
      
      ---------
      Co-authored-by: NWeilong Wu <veyron_wu@163.com>
      789aac8a
  9. 13 3月, 2023 1 次提交
    • H
      【prim】Maximum grad (#51006) · 4a484973
      heyanru 提交于
      * refresh
      
      * compat
      
      * register
      
      * testop
      
      * fix
      
      * fix
      
      * fox
      
      * cast
      
      * cast
      
      * fix
      
      * type
      
      * fix
      
      * out
      
      * cast
      
      * fix
      
      * fix
      
      * fix
      
      * broad
      
      * broad
      
      * broad
      
      * fix
      
      * fix
      
      * fix
      
      * fix
      
      * fix
      
      * broad
      
      * broad
      
      * numel
      
      * fix
      
      * fix
      
      * fix
      
      * fix
      
      * cinn
      
      * fix
      
      * fix
      
      * fix
      
      * fix
      4a484973
  10. 10 3月, 2023 1 次提交
  11. 07 3月, 2023 1 次提交
  12. 02 3月, 2023 1 次提交
  13. 28 2月, 2023 2 次提交
  14. 22 2月, 2023 1 次提交
    • J
      【Prim】Add gather vjp (#50305) · 4db8e5c7
      Jiabin Yang 提交于
      * tmp gather vjp
      
      * support gather
      
      * remove useless code
      
      * fix compiling error
      
      * fix ut
      
      * add eager test
      
      * add eager test
      
      * add seed
      
      * fix cpu error
      
      * fix transpose op compat
      
      * remove tensor index case
      
      * fix prim_cinn
      
      * fix ut
      4db8e5c7
  15. 18 2月, 2023 1 次提交
  16. 16 2月, 2023 1 次提交
  17. 14 2月, 2023 1 次提交
  18. 11 2月, 2023 1 次提交
    • H
      [Tensor Operator] Overload Tensor Operator (#50098) · 14e45f6b
      HongyuJia 提交于
      * init commit
      
      * fix tensor operator*
      
      * fix compile bug
      
      * bug reproduce
      
      * update commit
      
      * polish codes
      
      * fix compile bug
      
      * test begin
      
      * test begin
      
      * compile finish
      
      * restore origin composite_backward_api
      
      * pass local CI
      
      * fix merge error
      
      * fix merge error
      
      * change py_test from GPU->CPU, test custom op
      
      * polish codes, modify prim unittest
      
      * modify prim unittest
      
      * determine phi_tensor_operants location
      
      * polish codes
      
      * add header file
      
      * solve windows unresolved symbol
      
      * fix some CI error
      
      * add overload defination
      
      * fix CI inference and Windows
      
      * polish codes according to reviewers' opinion
      
      * polish codes according to reviewers' opinion
      14e45f6b
  19. 03 2月, 2023 2 次提交
  20. 02 2月, 2023 1 次提交
    • X
      【PRIM】Support use operator's output metadata info in constructing static... · d8643cb6
      Xiaoxu Chen 提交于
      【PRIM】Support use operator's output metadata info  in constructing static backward composite (#50043)
      
      * [prim] support custom target_gradients
      
      * support infershape after append one gradop
      
      * [prim] add simple net test
      
      * fix test_loop segment fault bug
      
      * [prim] fix infer shape segment fault bug when output of grad_op_desc is empty
      d8643cb6
  21. 31 1月, 2023 1 次提交
    • C
      Integrate static code gen info (#49858) · 0e51f398
      Charles-hit 提交于
      * polish static grad op maker gen
      
      * fix some bugs
      
      * fix static code gen
      
      * solve conflict
      
      * modify composite grad maker name
      
      * integrate phi and fluid info in static code gen
      
      * rename some composite maker
      
      * modify static code gen format
      0e51f398
  22. 20 1月, 2023 1 次提交
  23. 17 1月, 2023 1 次提交
  24. 16 1月, 2023 2 次提交
  25. 13 1月, 2023 1 次提交
    • J
      【Prim】Support elementwise related VJP with primitives (#49784) · 561f9013
      Jiabin Yang 提交于
      * support elementwise base func
      
      * fix compiling error and add test
      
      * remove additional param
      
      * support vjp for div using comp
      
      * remove additional change
      
      * fix dy2st error with magic num
      
      * fix dy magic num
      
      * another magic
      
      * another magic
      
      * add more test
      
      * fix windows problem
      
      * another magic
      
      * fix windows compile
      
      * invoke ci
      
      * add skip rename strategy
      
      * support add vjp
      
      * fix test_tanh
      
      * support add with new axis cal
      
      * fix resnet and some test
      
      * add composite log
      
      * support sub vjp
      561f9013
  26. 09 1月, 2023 1 次提交
    • J
      Prim paddle Basic (#49272) · 2f601282
      Jiabin Yang 提交于
      * proto type of composite grad in paddle
      
      * proto type of composite grad in paddle
      
      * refactor composite api with phi
      
      * fix compile error
      
      * support static graph code-gen for squeeze op
      
      * generate static graph code of unsqueeze
      
      * refine op name
      
      * fix compile error
      
      * add extra output in op_compat
      
      * remove debug log
      
      * fix clang compile error
      
      * support prim switch flag
      
      * support prim switch flag
      
      * fix dygraph error
      
      * merge develop
      
      * add code_gen
      
      * add necessary files without codegen
      
      * fix code_gen bug
      
      * add deps
      
      * modify igmnore
      
      * add ignore
      
      * delete std cout
      
      * add composite logic for backward.py
      
      * add tanh first order grad composite
      
      * support enable_prim flag for static graph
      
      * throw expection when both GrapOpMaker and GradCompOpMaker not been registered
      
      * reorganize the directory of prim api tests
      
      * fix windows error
      
      * add eager_utils
      
      * add eager_utils
      
      * modify code gen
      
      * add composite parse
      
      * add unittest for get_grad_op_desc
      
      * code optimize
      
      * fix static test on windows
      
      * support generate static graph code for imag and real op
      
      * fix windows compile error in test_static_prim
      
      * merge develop
      
      * disable test eager in inference
      
      * prim code gen
      
      * disable eager compile in inference
      
      * rm other file
      
      * rm gitignore file
      
      * code_style
      
      * add eager test
      
      * code_style
      
      * merge develop
      
      * remove useless files
      
      * modify static test
      
      * support bool flag from singlton
      
      * merge develop
      
      * recover git ignore
      
      * fix conflict
      
      * recover git ignore for generated op
      
      * fix test compile error
      
      * remove some tests
      
      * add python test
      
      * fix some name issue
      
      * add composite code gen
      
      * modify backward yaml
      
      * fix static composite grad maker code gen
      
      * remove addtional files
      
      * add some static funcs unit test
      
      * fix some bugs
      
      * fix composite grad maker register code gen
      
      * optimize some functions
      Co-authored-by: Nzyfncg <zhangyunfei07@baidu.com>
      Co-authored-by: Nwangruting <wangruting@baidu.com>
      Co-authored-by: Ncxxly <chenxx_id@163.com>
      Co-authored-by: Ncharles-hit <wanghao107@baidu.com>
      Co-authored-by: Nxiaoguoguo626807 <100397923+xiaoguoguo626807@users.noreply.github.com>
      2f601282