1. 04 9月, 2023 1 次提交
    • Z
      [IR] Support inplace pass (#56672) · 67c84c45
      zhangbo9674 提交于
      * add code
      
      * add code
      
      * refine code
      
      * add code
      
      * fix bug
      
      * fix bug
      
      * fix bug
      
      * add code
      
      * add ut
      
      * polish code
      
      * fix bug
      
      * refine code
      
      * fix bug
      
      * refine code
      
      * fix bug
      
      * refine code
      
      * fix bug
      
      * refine code
      
      * fix bug
      
      * refine code
      
      * add code
      
      * fix bug
      
      * fix bug
      
      * fix bug
      
      * fix bug
      
      * fix bug
      
      * refine code
      67c84c45
  2. 02 9月, 2023 1 次提交
  3. 31 8月, 2023 2 次提交
    • C
      【New IR】New ir op test v1.0 (#56668) · 266c6f0d
      Chen Zhiyang 提交于
      * add reference of lbfgs
      
      * add reference of lbfgs
      
      * new ir op test v1.0
      
      * fix new ir optest bug1.0
      
      * modify two testcase bug
      
      * add new ir white list & pass test_mean_op.py
      
      * rename white list
      
      * add new_ir_guard
      
      * rename backward.grad as ir_backward.grad
      
      * check place for new ir
      
      * fix test_build_model env bug
      
      * fix test_prim_program backward bug
      
      * change backward to ir_backward in check_appr
      
      ---------
      Co-authored-by: Nwangruting <wangruting@baidu.com>
      266c6f0d
    • H
      [NewIR]New ir using kernel registrer type (#56789) · a34bdb64
      hong 提交于
      * update
      
      * fix batch norm grad args def
      
      * fix bug
      
      * fix combine slice bug
      
      * fix slice bug
      
      * update builtin split
      
      * disable using kernel resigter dtype
      
      * polish code
      
      * disable some test
      a34bdb64
  4. 29 8月, 2023 2 次提交
  5. 28 8月, 2023 3 次提交
  6. 25 8月, 2023 1 次提交
  7. 24 8月, 2023 3 次提交
  8. 21 8月, 2023 1 次提交
  9. 17 8月, 2023 2 次提交
    • K
      [NewIR] fix shadow output translator (#56365) · 22a11a60
      kangguangli 提交于
      * fix shadow output translator
      
      * fix coverage ci
      22a11a60
    • X
      【New IR】 backward gradients accumulate test and pulish append_backward_ops... · b1573431
      xiaoguoguo626807 提交于
      【New IR】 backward gradients accumulate test and pulish append_backward_ops func for op_pattern  (#56265)
      
      * [prim][newir] add basic framework for primitive
      
      * support desctensor in new ir
      
      * add vjp interface
      
      * support vjp in new ir
      
      * support vjp in new ir
      
      * polish vjp interface
      
      * fix stop_gradients set
      
      * fix vjp dispatch
      
      * add comment
      
      * add vjp test for new ir
      
      * add test for tanh vjp
      
      * [prim][newir] add basic framework for primitive
      
      * support desctensor in new ir
      
      * support vjp in new ir
      
      * support vjp in new ir
      
      * polish vjp interface
      
      * fix stop_gradients set
      
      * fix vjp dispatch
      
      * add comment
      
      * add vjp test for new ir
      
      * add test for tanh vjp
      
      * add eager and static backend for warp lower level api
      
      * support call_vjp pybind
      
      * polish code and add test for vjp
      
      * remove useless code
      
      * polish code
      
      * remove useless code
      
      * support mean vjp
      
      * backward origin code
      
      * add test for mean vjp and support has_vjp function
      
      * fix call_vjp
      
      * polish code
      
      * add attrs and dtype interface
      
      * add primitive ops set for backend
      
      * fix compile bugs
      
      * fix some bugs
      
      * fix windows bugs
      
      * add vjp test for tanh_
      
      * fix inference CI
      
      * fix inference ci
      
      * modify fluid cmake
      
      * origin test of tanh and mean passed
      
      * fix conflict
      
      * modify stop_gradient
      
      * remove useless deps
      
      * add cmake
      
      * modify block.ops
      
      * modify test
      
      * fix conflict
      
      * reply review comments
      
      * reply review comments
      
      * pulish code
      
      * fix comment
      
      * fix test
      
      * polish code
      
      * modify backward stop_gradients
      
      * modify static_backend.cc
      
      * refactor grad_op
      
      * support add and add_inplace vjp
      
      * remove useless code
      
      * remove useless code
      
      * remove cout
      
      * modify add_n
      
      * modify add_n with add_vjp test
      
      * modify add_n with add_vjp test
      
      * fix conflict and concat call_vjp
      
      * modify backward test
      
      * Add more gen api
      
      ---------
      Co-authored-by: Ncxxly <chenxx_id@163.com>
      Co-authored-by: NCharles-hit <wanghao107@baidu.com>
      Co-authored-by: Nzhangbo9674 <zhangbo54@baidu.com>
      Co-authored-by: NYuanRisheng <yuanrisheng@baidu.com>
      Co-authored-by: N0x45f <wangzhen45@baidu.com>
      b1573431
  10. 16 8月, 2023 2 次提交
  11. 15 8月, 2023 1 次提交
  12. 14 8月, 2023 1 次提交
  13. 11 8月, 2023 2 次提交
    • C
      [PRIM][IR]fix comment for vjp (#56137) · 533b62ff
      Charles-hit 提交于
      * [prim][newir] add basic framework for primitive
      
      * support desctensor in new ir
      
      * add vjp interface
      
      * support vjp in new ir
      
      * support vjp in new ir
      
      * polish vjp interface
      
      * fix stop_gradients set
      
      * fix vjp dispatch
      
      * add comment
      
      * add vjp test for new ir
      
      * add test for tanh vjp
      
      * [prim][newir] add basic framework for primitive
      
      * support desctensor in new ir
      
      * support vjp in new ir
      
      * support vjp in new ir
      
      * polish vjp interface
      
      * fix stop_gradients set
      
      * fix vjp dispatch
      
      * add comment
      
      * add vjp test for new ir
      
      * add test for tanh vjp
      
      * add eager and static backend for warp lower level api
      
      * support call_vjp pybind
      
      * polish code and add test for vjp
      
      * remove useless code
      
      * polish code
      
      * remove useless code
      
      * support mean vjp
      
      * add test for mean vjp and support has_vjp function
      
      * fix call_vjp
      
      * polish code
      
      * add primitive ops set for backend
      
      * add vjp test for tanh_
      
      * fix inference CI
      
      * fix inference ci
      
      * modify fluid cmake
      
      * remove useless deps
      
      * add cmake
      
      * fix comment
      
      * fix test
      
      * polish code
      
      * modify backward stop_gradients
      
      * modify static_backend.cc
      
      * remove useless code
      
      ---------
      Co-authored-by: Ncxxly <chenxx_id@163.com>
      Co-authored-by: Nzhangbo9674 <zhangbo54@baidu.com>
      533b62ff
    • X
      【New IR] delete print program in test and delete add_n attribute c++ interface... · eadc5d07
      xiaoguoguo626807 提交于
      【New IR] delete print program in test and delete add_n attribute c++ interface to reply #56080 (#56120)
      
      * refine program translator
      
      * fix warning: not override
      
      * fix bug
      
      * merge new modifications
      
      * modify by reviews
      
      * resolve conflicts
      
      * resolve conflicts
      
      * fix
      
      * fix
      
      * fix conflicts
      
      * pseudocode of backward
      
      * modify test
      
      * modify register op
      
      * clear other code
      
      * modify ci build bug
      
      * reply review comments
      
      * reply review comments
      
      * delete print and add_n c++ interface
      
      ---------
      Co-authored-by: Nkangguangli <kangguangli@hotmail.com>
      eadc5d07
  14. 10 8月, 2023 1 次提交
  15. 09 8月, 2023 2 次提交
    • X
      【New IR】backward code of new ir (#55957) · 0399b39f
      xiaoguoguo626807 提交于
      * [prim][newir] add basic framework for primitive
      
      * support desctensor in new ir
      
      * add vjp interface
      
      * support vjp in new ir
      
      * support vjp in new ir
      
      * polish vjp interface
      
      * fix stop_gradients set
      
      * fix vjp dispatch
      
      * add comment
      
      * add vjp test for new ir
      
      * add test for tanh vjp
      
      * [prim][newir] add basic framework for primitive
      
      * support desctensor in new ir
      
      * support vjp in new ir
      
      * support vjp in new ir
      
      * polish vjp interface
      
      * fix stop_gradients set
      
      * fix vjp dispatch
      
      * add comment
      
      * add vjp test for new ir
      
      * add test for tanh vjp
      
      * add eager and static backend for warp lower level api
      
      * support call_vjp pybind
      
      * polish code and add test for vjp
      
      * remove useless code
      
      * polish code
      
      * remove useless code
      
      * support mean vjp
      
      * backward origin code
      
      * add test for mean vjp and support has_vjp function
      
      * fix call_vjp
      
      * polish code
      
      * add attrs and dtype interface
      
      * add primitive ops set for backend
      
      * fix compile bugs
      
      * fix some bugs
      
      * fix windows bugs
      
      * add vjp test for tanh_
      
      * fix inference CI
      
      * fix inference ci
      
      * modify fluid cmake
      
      * origin test of tanh and mean passed
      
      * fix conflict
      
      * modify stop_gradient
      
      * modify block.ops
      
      * modify test
      
      * fix conflict
      
      * reply review comments
      
      * reply review comments
      
      * pulish code
      
      ---------
      Co-authored-by: Ncxxly <chenxx_id@163.com>
      Co-authored-by: NCharles-hit <wanghao107@baidu.com>
      Co-authored-by: Nzhangbo9674 <zhangbo54@baidu.com>
      Co-authored-by: NYuanRisheng <yuanrisheng@baidu.com>
      0399b39f
    • X
      [New IR] add Add_n op description and python api (#56080) · 7cbb433a
      xiaoguoguo626807 提交于
      * refine program translator
      
      * fix warning: not override
      
      * fix bug
      
      * merge new modifications
      
      * modify by reviews
      
      * resolve conflicts
      
      * resolve conflicts
      
      * fix
      
      * fix
      
      * fix conflicts
      
      * pseudocode of backward
      
      * modify test
      
      * modify register op
      
      * clear other code
      
      * modify ci build bug
      
      * reply review comments
      
      * reply review comments
      
      ---------
      Co-authored-by: Nkangguangli <kangguangli@hotmail.com>
      7cbb433a
  16. 08 8月, 2023 2 次提交
    • J
      Provide opoperands(), opresults() methods for the Operation module (#55903) · a5ba0b65
      jjyaoao 提交于
      * Provide opoperands(), opresults() methods for the Operation module
      Signed-off-by: Njjyaoao <jjyaoao@126.com>
      
      * Update test_ir_pybind.py
      
      ---------
      Signed-off-by: Njjyaoao <jjyaoao@126.com>
      a5ba0b65
    • C
      [PRIM][IR] Migrate vjp rules to new ir in non primitive mode (#55647) · 501a51fc
      Charles-hit 提交于
      * [prim][newir] add basic framework for primitive
      
      * support desctensor in new ir
      
      * add vjp interface
      
      * support vjp in new ir
      
      * support vjp in new ir
      
      * polish vjp interface
      
      * fix stop_gradients set
      
      * fix vjp dispatch
      
      * add comment
      
      * add vjp test for new ir
      
      * add test for tanh vjp
      
      * [prim][newir] add basic framework for primitive
      
      * support desctensor in new ir
      
      * support vjp in new ir
      
      * support vjp in new ir
      
      * polish vjp interface
      
      * fix stop_gradients set
      
      * fix vjp dispatch
      
      * add comment
      
      * add vjp test for new ir
      
      * add test for tanh vjp
      
      * add eager and static backend for warp lower level api
      
      * support call_vjp pybind
      
      * polish code and add test for vjp
      
      * remove useless code
      
      * polish code
      
      * remove useless code
      
      * support mean vjp
      
      * add test for mean vjp and support has_vjp function
      
      * fix call_vjp
      
      * polish code
      
      * add primitive ops set for backend
      
      * add vjp test for tanh_
      
      * fix inference CI
      
      * fix inference ci
      
      * modify fluid cmake
      
      * remove useless deps
      
      * add cmake
      
      ---------
      Co-authored-by: Ncxxly <chenxx_id@163.com>
      Co-authored-by: Nzhangbo9674 <zhangbo54@baidu.com>
      501a51fc
  17. 07 8月, 2023 1 次提交
  18. 04 8月, 2023 2 次提交
  19. 03 8月, 2023 1 次提交
  20. 02 8月, 2023 1 次提交
  21. 01 8月, 2023 1 次提交
    • H
      [NewIR]New ir support print op (#55648) · 75c29ac1
      hong 提交于
      * new ir support print op
      
      * fix gpu bug
      
      * fix bug
      
      * update
      
      * remove layout to string
      
      * remove usless header
      
      * polish code
      
      * fix bug
      
      * posolis code
      75c29ac1
  22. 31 7月, 2023 2 次提交
  23. 28 7月, 2023 1 次提交
    • H
      New ir support fluid op (#55693) · b76c2f94
      hong 提交于
      * new ir support save combine
      
      * update
      
      * polish code
      
      * update
      
      * new ir support fluid op
      
      * remove depulicate op
      
      * fix ir exe test compile error
      
      * fix compile bug
      
      * update
      
      * code format
      
      * update
      
      * update
      
      * polish code
      b76c2f94
  24. 27 7月, 2023 2 次提交
    • H
      [NewIR]Fix new ir dygraph 2 static concat grad bug (#55634) · 51ebcf68
      hong 提交于
      * add kernel dialect
      
      * change DenseTensorTypeStorage to DenseTensorType
      
      * add test case`
      
      * add first pd_op to kernel dialect
      
      * lower pd op to kernel dialect
      
      * update
      
      * update
      
      * remove useless code
      
      * add attrite print test
      
      * fix bug
      
      * update
      
      * update
      
      * update
      
      * update
      
      * polish code
      
      * fix bug
      
      * polish  code  and add python test
      
      * add test
      
      * fix test error
      
      * relax constraint when inserting get_parameter
      
      * add env flag
      
      * fix bug
      
      * dygraph2static support new ir
      
      * fix bug
      
      * revert test env
      
      * change cc_test_old to cc_test
      
      * update
      
      * fix build_static bug
      
      * update test
      
      * fix type test error
      
      * udpate cmake
      
      * disable test in windows
      
      * fix inference compile
      
      * fix program translator error
      
      * only run on cpu, not support gpu yet
      
      * fix conflict
      
      * polish code
      
      * fix bug
      
      * add feed with place op
      
      * update
      
      * remove useless unitest
      
      * udpate mkldnn
      
      * update
      
      * update
      
      * align mkldnn version
      
      * new ir support builtin slice op
      
      * fix bug
      
      * fix phi kernel adaptor bug
      
      * add enable static
      
      * add enable_static
      
      * remove useless test case
      
      * change feed list to single variable
      
      * update
      
      * add feed with place and shaddow output op
      
      * fix bug
      
      * remove usless code
      
      * support gpu
      
      * fix bug
      
      * fix bug
      
      * remove template
      
      * add more data type
      
      * fix cimpile bug
      
      * udpate
      
      * remove useless code
      
      * revert dygraph2st test
      
      * remove usless code
      
      * revert op
      
      * fix bug
      
      * remove instance norm
      
      * fix concat grad bug
      
      * revert code
      
      ---------
      Co-authored-by: Nkangguangli <kangguangli@hotmail.com>
      51ebcf68
    • A
      cbbd940e
  25. 26 7月, 2023 2 次提交