1. 11 8月, 2023 2 次提交
    • Y
      [NewIR]Polish IR code (#56087) · 8cf4b1c2
      YuanRisheng 提交于
      * perfect code
      
      * delete __all__
      8cf4b1c2
    • 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
  2. 10 8月, 2023 1 次提交
  3. 09 8月, 2023 5 次提交
    • 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
    • X
      [New Feature] add _inplace_assign interface for sot. (#56077) · b4a4f1bb
      xiongkun 提交于
      * [New Feature] add _inplace_assign interface for sot
      
      * add unittest for inplace_assign
      b4a4f1bb
    • X
      [oneDNN]rename macro to PADDLE_WITH_DNNL (#52208) · 6ff4c130
      Xinyu Chen 提交于
      * onednn: rename macro to PADDLE_WITH_DNNL
      
      * onednn: rename macro to CINN_WITH_DNNL
      6ff4c130
    • R
      [clang-tidy] fix modernize-make-unique (#55764) · 9f04f2ac
      Ruibin Cheung 提交于
      9f04f2ac
  4. 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
  5. 07 8月, 2023 4 次提交
    • L
      Make tcp store as a global instance (#55956) · 0434b828
      LiYuRio 提交于
      * make tcp store a global instance
      
      * fix windows compile error
      0434b828
    • Y
      [New IR]Add attrs Interface for Python (#55974) · 02e6347d
      YuanRisheng 提交于
      * add attrs and dtype interface
      
      * fix compile bugs
      
      * fix some bugs
      
      * fix windows bugs
      02e6347d
    • G
      5ada98b8
    • X
      [dy2static] PaddleSOT pr (#54202) · c1913a5f
      xiongkun 提交于
      * add paddle-symbolic-trace to paddle
      
      * add symoblic trace
      
      * delete swp
      
      * support Layer in symbolic trace
      
      * fix test-symbolic-trace, make symbolic trace return a StaticFunction
      
      * template the error message
      
      * fix some unittest
      
      * Modify the execution mode of test
      
      * Modify the module name
      
      * add dy2static unittest decorator
      
      * change some unittest files by @ast_only_test
      
      * fix unittest.
      
      * test-symbolic-trace
      
      * update test_write_python_container.py
      
      * update
      
      * fix test_param_parse.py
      
      * add submodule and ln -sf in cmakefile
      
      * update
      
      * update
      
      * fix some ast only errors
      
      * update
      
      * Polish ut
      
      * fix unittests
      
      * update
      
      * update
      
      * fix unittests
      
      * update
      
      * test warning ast only
      
      * update
      
      * Ast only some uts
      
      * Fix unitests
      
      * test_error ast only
      
      * update
      
      * update
      
      * Support build_strategy for sot
      
      * update
      
      * import sot as a third party module
      
      * update
      
      * update
      
      * Polish code
      
      * update
      
      * update
      
      * update
      
      * update
      
      * update
      
      * remove old fluid api and use paddle.nn.relu instead
      
      * fix
      
      * comment the print of ast code
      
      * add try-finally block
      
      * fix dy2static stop-gradient bugs
      
      * fix code
      
      * remove unused submodule and minor codestyle fix
      
      * fix
      
      * fix cast error
      
      * fix interpolate meets int64 in static model
      
      * add evalframe support for py311
      
      * fix
      
      * fix err
      
      * switch ENABLE_FALL_BACK=False
      
      * fix
      
      * Fix CI for some unittest
      
      * add ENABLE_SOT
      
      * remove setup.py dependences
      
      ---------
      Co-authored-by: NNotHaozi <zhangmenghao@baidu.com>
      Co-authored-by: Nfeifei-111 <2364819892@qq.com>
      Co-authored-by: N0x45f <wangzhen45@baidu.com>
      Co-authored-by: NSigureMo <sigure.qaq@gmail.com>
      c1913a5f
  6. 04 8月, 2023 3 次提交
    • J
      [Semi AutoParall] Support Partial Semantic I (#55508) · e3b6e02f
      JZ-LIANG 提交于
      e3b6e02f
    • Z
      1e4f627d
    • J
      Support Combined indexing for __getitem__ and __setitem__ (#55211) · 697c712f
      JYChen 提交于
      * WIP: start writing combined indexing get
      
      * list/tuple/Variable
      
      * getitem 80%
      
      * add setitem
      
      * add some unittest for setitem
      
      * lazy import
      
      * fix some setitem error
      
      * fix advance indexing with decreasing axes; fix strided_slice input name
      
      * combine int-tensor getitem is ok (without boolean support & broadcast); add getitem unittest for static
      
      * add broadcast & parse bool tensor for __getitem
      
      * [change getitem] _getitem_impl_ to _getitem_static, not deleting the former one
      
      * refine new getitem; fix ut in variable/var_base
      
      * add __getitem__ ut in dygraph
      
      * re-dispatch getitem for Py/CPP; fix strided_slice decrease axes error in dygraph
      
      * fix ut; support tensor in slice
      
      * [change setitem] _setitem_impl_ to _setitem_static, not deleting the former one
      
      * remove some UT (for some, temporarily)
      
      * add IndexError to solve timeout problem in static-mode
      
      * 1.temply forbideen all-False bool-indexput; 2.setitem_static will return new variable
      
      * xpu uses old stratege
      
      * rename dy2st setitem ut to avoid same-name problem
      
      * dy2st for new combined index
      
      * ut case for combine-index with dy2st
      
      * open ut with all-false-bool setitem
      
      * remove useless doc and _getitem_impl_
      
      * change static res
      
      * fix static xpu
      697c712f
  7. 03 8月, 2023 3 次提交
    • W
      81ccd99e
    • X
      add eq and hash (#55909) · 8ddf51ff
      xiaoguoguo626807 提交于
      8ddf51ff
    • W
      Eager tensor doc2 (#55886) · 9db219d1
      wanghuancoder 提交于
      * add docstring of three eager method
      
      * test=docs_preview
      
      * update element size bind
      
      * update docs of numpy, clone, clear_gradient, element_size; test=docs_preview
      
      * refine clear_gradient docs; test=docs_preview
      
      * refine element_size docs; test=docs_preview
      
      * add detach doc; test=docs_preview
      
      * empty commit; test=docs_preview
      
      * update signature; test=docs_preview
      
      * refactor; test=docs_preview
      
      * empty commit; test=docs_preview
      
      * add docstring of Tensor
      
      * empty commit; test=docs_preview
      
      * refine TensorDoc; test=docs_preview
      
      * refine TensorDoc; test=docs_preview
      
      * remove extra indent in TensorDoc; test=docs_preview
      
      * remove a space; test=docs_preview
      
      * move docs ahead of implementation; test=docs_preview
      
      * add doc
      
      * refine
      
      * refine
      
      * refine
      
      ---------
      Co-authored-by: Nwj-Mcat <1435130236@qq.com>
      Co-authored-by: NSigureMo <sigure.qaq@gmail.com>
      9db219d1
  8. 02 8月, 2023 4 次提交
    • X
      [EvalFrame] support python3.11 in eval frame. (#55887) · f45dd5ee
      xiongkun 提交于
      f45dd5ee
    • W
      Eager tensor doc (#55879) · 880e94fc
      wanghuancoder 提交于
      * add docstring of three eager method
      
      * test=docs_preview
      
      * update element size bind
      
      * update docs of numpy, clone, clear_gradient, element_size; test=docs_preview
      
      * refine clear_gradient docs; test=docs_preview
      
      * refine element_size docs; test=docs_preview
      
      * add detach doc; test=docs_preview
      
      * empty commit; test=docs_preview
      
      * update signature; test=docs_preview
      
      * refactor; test=docs_preview
      
      * empty commit; test=docs_preview
      
      * add docstring of Tensor
      
      * empty commit; test=docs_preview
      
      * refine TensorDoc; test=docs_preview
      
      * refine TensorDoc; test=docs_preview
      
      * remove extra indent in TensorDoc; test=docs_preview
      
      * remove a space; test=docs_preview
      
      * move docs ahead of implementation; test=docs_preview
      
      * refine
      
      ---------
      Co-authored-by: Nwj-Mcat <1435130236@qq.com>
      Co-authored-by: NSigureMo <sigure.qaq@gmail.com>
      880e94fc
    • W
      fix security bug (#55782) · 19da5c0c
      wanghuancoder 提交于
      * fix security bug
      19da5c0c
    • X
      【new ir】add ir pybind api (#55745) · ef29468e
      xiaoguoguo626807 提交于
      * add ir core
      
      * add test
      
      * modify name
      
      * merge
      
      * add test for __eq__
      
      * shield  test for __eq__
      
      * --amend
      
      * Update new_ir_compiler.cc
      ef29468e
  9. 01 8月, 2023 6 次提交
  10. 31 7月, 2023 3 次提交
  11. 26 7月, 2023 4 次提交
  12. 25 7月, 2023 1 次提交
    • Q
      解决 grad_fn next_functions api 接口导致内存异常的问题 - (#55627) · 03a2f187
      qiuwenbo 提交于
      * [尝试] 给tensor增加一个属性, 这个属性是一个定值 1
      
      * 暴露gradnode 并构建gradnode新的方法(用来测试)进行暴露给python python端可以访问
      
      * 开发grad_fn、next_functions两个API 并暴露到python端- 做一些规范化处理
      
      * 增加一个单元测试
      
      * 优化 code-style
      
      * 将单侧文件迁到正确的位置
      
      * 优化 code-style
      
      * 删除无用注释
      
      * 解决 __main__ has no attribute
      
      * 修改单侧文件
      
      * 修改单侧脚本-temp
      
      * 解决 grad_fn next_functions api 接口导致内存异常的问题
      
      * 修改单测内容
      
      * 解决 code-style 问题
      03a2f187
  13. 24 7月, 2023 1 次提交
  14. 21 7月, 2023 1 次提交