1. 15 3月, 2023 1 次提交
    • HappyHeavyRain's avatar
      Move the "GetExpectedKernelType" into "get_expected_kernel_func.cc" (#51453) · f0db1f7e
      HappyHeavyRain 提交于
      * test_get_kernel
      
      * add invoke signature
      
      * change reduce_max
      
      * change frobenius_norm
      
      * reset reduce_max according to composite and change reduce_all
      
      * fix the bug when Scalar(*)
      
      * fix 'scalar when support_tensor'
      
      * change code according to review
      
      * change 'keep_signature' to 'manual_signature' and add some erro info
      f0db1f7e
  2. 10 3月, 2023 1 次提交
  3. 07 3月, 2023 1 次提交
  4. 24 2月, 2023 2 次提交
  5. 23 2月, 2023 1 次提交
    • HappyHeavyRain's avatar
      Support 'complex promote' in yaml (#50611) · 91a3d159
      HappyHeavyRain 提交于
      * support 'complex promote' in yaml
      
      * change the compplex_promote
      
      * change 'kron' in math.py
      
      * change 'kron' comment in python
      
      * change kron comment in python
      
      * change kron comment in python
      91a3d159
  6. 21 2月, 2023 1 次提交
    • HappyHeavyRain's avatar
      Support bw invoke fw (#50260) · d8845735
      HappyHeavyRain 提交于
      * support bw invoke fw
      
      * fix scale in static_backward.yaml
      
      * fix the bug in tensorrt/convert
      
      * move 'scale','sign' into ops.yaml
      
      * add scale_grad of scale in op_compat.yaml
      
      * change generated_static_op in CMakeLists.txt
      d8845735
  7. 03 2月, 2023 1 次提交
  8. 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
  9. 16 1月, 2023 3 次提交
  10. 13 1月, 2023 2 次提交
    • 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
    • Z
      Generate static graph code of stack, unbind, unique_consecutive op (#49726) · ac9debee
      zyfncg 提交于
      * generate static graph code of stack, unbind, unique_consecutive op
      
      * fix bug
      ac9debee
  11. 09 1月, 2023 2 次提交
    • HappyHeavyRain's avatar
      Support the 'drop_empty_grad' in of output of backward_ops (#49588) · 36c6c589
      HappyHeavyRain 提交于
      * support the drop_empty_grad in backward
      
      * change code according to yunfei's review suggestion
      36c6c589
    • 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
  12. 05 1月, 2023 1 次提交
  13. 04 1月, 2023 1 次提交
    • H
      [Unify KernelKey] change OpKernelType->KernelKey (#49138) · 4383494f
      HongyuJia 提交于
      * execute use kernel_key first
      
      * change OpKernelType->KernelKey
      
      * fix py3 compile error, remove redundant header files
      
      * fix build_strategy_test
      
      * fix DataType::RAW
      
      * fix custom_type test: operator_test.cc
      
      * fix transform place
      
      * fix backends_are_same_class
      
      * try fix place TransDataDevice
      
      * support all KernelKey
      
      * fix TransformData
      
      * fix place_are_same_class
      
      * fix merge
      
      * fix test_params_no_grad
      
      * fix specific place of GetExpectedKernelType
      
      * fix specific place of GetExpectedKernelType
      
      * fix GetKernelTypeForVar
      
      * fix dtype error
      
      * fix fetch_v2
      
      * change GetKernelTypeForVar
      
      * fix interpreter
      
      * fix typo error
      
      * polish codes
      
      * polish codes
      
      * polish codes
      
      * fix conflict
      4383494f
  14. 30 12月, 2022 1 次提交
  15. 09 12月, 2022 1 次提交
  16. 10 11月, 2022 1 次提交
  17. 09 11月, 2022 1 次提交
  18. 04 11月, 2022 1 次提交
  19. 02 11月, 2022 1 次提交
  20. 28 10月, 2022 1 次提交
  21. 24 10月, 2022 1 次提交
  22. 18 10月, 2022 1 次提交
    • Z
      [code-gen] Support code-gen for opmaker of sparse op (#46993) · bdd3dde3
      zyfncg 提交于
      * support generating code of opmaker for backward op invoke forward op
      
      * gsupport code-gen of opmaker for sparse op
      
      * refind logic of choose phi kernrel
      
      * fix complie budg
      
      * fix code_gen bug
      
      * fix bug
      
      * fix kernel signature code-gen
      
      * fix complie bug of VarType
      
      * fix complie bug of VarType
      
      * fix test_sparse_conv_op
      
      * fix test_sparse_norm_op
      bdd3dde3
  23. 12 10月, 2022 1 次提交
  24. 28 7月, 2022 1 次提交
  25. 15 7月, 2022 1 次提交
  26. 14 7月, 2022 1 次提交
  27. 01 7月, 2022 1 次提交
  28. 27 6月, 2022 1 次提交
  29. 24 6月, 2022 1 次提交
  30. 23 6月, 2022 1 次提交
  31. 22 6月, 2022 1 次提交
    • F
      fix bugs in codegen for operators (#43594) · a160c417
      Feiyu Chan 提交于
      * add codegen for get_expected_kernel, add argument mapping for selected_rows kernels, fix other bugs in codegen for operators.
      * move bernoulli, erf, mv, poisson, trunc, erf to api.yaml and corresponding backward api to backward.yaml
      * generate EmptyGradOpMaker for ops without grad op
      * add code to generate all possible kernel signatures for infrt
      a160c417
  32. 18 5月, 2022 1 次提交