1. 17 1月, 2023 15 次提交
    • X
      Prim api gen (#49654) · 813e27c9
      xiaoguoguo626807 提交于
      * 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
      
      * origin_yaml codegen success
      
      * rm other file
      
      * rm gitignore file
      
      * code_style
      
      * add eager test
      
      * code_style
      
      * clear #
      
      * merge develop
      
      * clear #
      
      * remove useless files
      
      * modify static test
      
      * support bool flag from singlton
      
      * merge develop
      
      * recover git ignore
      
      * fix conflict
      
      * clear prim_gen
      
      * recover git ignore for generated op
      
      * parse_yaml success
      
      * fix test compile error
      
      * remove some tests
      
      * add python test
      
      * code_style
      
      * revert parse_utils+ clear prim_gen
      
      * 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
      
      * modify gen cmake
      
      * add more api gen
      
      * add header
      
      * modify static
      
      * add static expand unsqueeze
      
      * comments
      
      * modify compopmaker
      
      * revert
      
      * modify gen name
      Co-authored-by: NJiabinYang <360788950@qq.com>
      Co-authored-by: Nzyfncg <zhangyunfei07@baidu.com>
      Co-authored-by: Ncxxly <chenxx_id@163.com>
      Co-authored-by: Ncharles-hit <wanghao107@baidu.com>
      813e27c9
    • Y
      [PHI]Change feed_op to phi kernel (#49116) · f7f1dc03
      YuanRisheng 提交于
      * change feed_op to phi kernel
      
      * fix ci bugs
      
      * fix build bugs
      
      * fix ci bugs
      
      * fix compile bugs
      
      * fix ci bugs
      
      * perfect code
      
      * perfect comment code
      
      * fix install bugs
      
      * modify code according comment
      
      * remove visitor in feed_op
      
      * modify according comment
      
      * perfect code according comment
      
      * add infershape
      
      * fix py3 bugs
      
      * fix getexpected kernel type
      
      * fix getexpected kernel type
      
      * fix ci bugs
      
      * add registry for custom device
      
      * fix py3 bugs
      
      * fix floating point error
      
      * fix py3 test bugs
      f7f1dc03
    • C
      Merge ops composite into to_static (#49836) · b2a10916
      cyber-pioneer 提交于
      * support @to_static+to_prime+cinn
      
      * fix code logic
      
      * debug4
      
      * debug5
      
      * debug6
      
      * debug7
      
      * debug 8
      
      * debug 9
      
      * debug10
      
      * debug11
      
      * debug11
      
      * debug 12
      Co-authored-by: NAurelius84 <zhangliujie@baidu.com>
      b2a10916
    • W
      Fix translated layer fine-tune error (#49870) · 412573f0
      WangZhen 提交于
      * Fix translated layer fine-tune
      412573f0
    • D
      fix ps ut error;test=develop (#49867) · 56cacae9
      danleifeng 提交于
      56cacae9
    • J
      add test for composite with dy2st (#49873) · b927ce81
      Jiabin Yang 提交于
      b927ce81
    • H
      Support 0d Tensor in ConditionalBlockOp (#49842) · 791637cf
      Huihuang Zheng 提交于
      Support 0d Tensor in ConditionalBlockOp
      
      1. Add dygraph 0d tensor support for ConditionalBlockOp
      2. Set scalar loss shape when `append_backward`
      791637cf
    • rm flag retain grad (#49835) · 73f97de0
      姜永久 提交于
      * rm retain grad
      
      * fix zero_dim
      
      * fix zero_dim for xpu
      
      * reset zero dim for xpu
      
      * reset xpu
      
      * reset custom_relu
      
      * Reset flip
      
      * fix zero dim
      73f97de0
    • R
      Fix build ci (#49879) · 60ee518a
      risemeup1 提交于
      * fix build ci bug
      
      * fix build ci bug,test=test=document_fix
      
      * fix build ci bug,test=document_fix
      60ee518a
    • Z
      Fix the paddle/staitc/amp/__init__.py (#49791) · fcc90531
      zhangkaihuo 提交于
      fcc90531
    • zhouweiwei2014's avatar
      disable scatter zero_dim test (#49853) · 86fa1715
      zhouweiwei2014 提交于
      86fa1715
    • H
      SetDevice when parse TensorBase (#49860) · 4c576870
      HongyuJia 提交于
      4c576870
    • W
      [Dy2St]Support call backward() without params in dy2st (#49812) · 2f24b2d8
      WangZhen 提交于
      * Support call backward() without params in dy2st
      2f24b2d8
    • L
      Modified compute and amplifier interceptor (#42044) · 989e39a5
      LiYuRio 提交于
      989e39a5
    • X
      【Prim】Add multiply,expand,div vjp rules (#49831) · 39c6765a
      Xiaoxu Chen 提交于
      * support elementwise base func
      
      * fix compiling error and add test
      
      * support vjp for div using comp
      
      * remove additional change
      
      * fix dy2st error with magic num
      
      * fix dy magic num
      
      * another magic
      
      * another magic
      
      * another magic
      
      * add skip rename strategy
      
      * support add vjp
      
      * support add with new axis cal
      
      * support sub vjp
      
      * [prim] add multiply vjp rules
      
      * [prim] add multiply vjp rules
      
      * [prim] fix no infershape with composite in _append_backward_ops
      
      * [prim] add expand vjp rule
      
      * [prim] add exp vjp rule
      
      * uncomment infer shape for reshape/sum static prim api
      
      * [prim] fix tanh nullptr error
      
      * remove some print message
      
      * fix magic number in run_program relative tests @JiaBinYang
      
      * [prim] add expand,multiply,exp vjp rules
      
      * fix only support single direction reduce error
      
      * infer reduce dims using out dims
      Co-authored-by: NJiabinYang <360788950@qq.com>
      39c6765a
  2. 16 1月, 2023 22 次提交
  3. 15 1月, 2023 2 次提交
    • R
      support mp on xpu (#49815) · 6a56bce7
      Roc 提交于
      1 update xccl lib
      2 when using comm_ctx, the allocator should be set manually.
      6a56bce7
    • J
      【Prim】Enhance tests (#49814) · 090aa45d
      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
      
      * enhance_tests
      
      * support more dtype for full
      090aa45d
  4. 14 1月, 2023 1 次提交