1. 10 4月, 2023 1 次提交
    • V
      [AMP OP&Test] Add fp16 and bf16 test to activation (#52521) · 6bd5fd75
      Vvsmile 提交于
      * adjust defalut tolerance of output and grad
      
      * fix a bug in the grad of OpTest
      
      * fix the type of setting defalut value in optest, both forward and
      backward
      
      * add defalut
      
      * fix test_sum_op
      
      * adjust tolerance
      
      * fix the tolerance of eager
      
      * add bf16 and fp16 to the activation tests
      
      * remove some fixs
      
      * fix activation
      
      * fix fp16
      
      * fix gelu
      
      * fix the activation tests
      
      * add bfloat16 specialization to singrad and cosgrad
      
      * fix bugs
      
      * fix bugs
      
      * add unittest
      
      * add skip
      
      * add fp/bf to rrelu/rrelu_grad
      
      * git add rrelu
      
      * fix bugs
      6bd5fd75
  2. 07 4月, 2023 1 次提交
  3. 06 4月, 2023 2 次提交
  4. 04 4月, 2023 2 次提交
  5. 03 4月, 2023 1 次提交
  6. 31 3月, 2023 1 次提交
  7. 30 3月, 2023 1 次提交
    • W
      support prim & cinn test for layer_norm (#51272) · 84504f35
      Weilong Wu 提交于
      * 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
      
      * recover
      
      * fix some errors
      
      * recover
      
      * recover
      
      * recover
      
      * recover
      
      * fix merge conflicts
      
      ---------
      Co-authored-by: Nwangruting <wangruting@baidu.com>
      84504f35
  8. 28 3月, 2023 2 次提交
    • F
      Add basic functionalities to support Scalar & Scalars in op attr (#51984) · 2e9fd5e4
      Feiyu Chan 提交于
      Add basic functionalities to support Scalar & Scalars in operator attribute.
      
      1. extend allowed types in operator's attribute type, add `paddle::experimental::Scalar`, add corresponding protobuf Message types;
      2. Scalar enhancement, add formatting, equality;
      3. add code to handle Scalar & Scalars in opmaker, conversion from  paddle operator to phi kernel, opdesc construction and manipulation,  tensorrt converter, tracer, operator construction, etc;
      4. bind `paddle::experimental::Scalar` to python, as `libpaddle.Scalar`;
      5. add functionality to canonicalize attribute map according to OpProto(if the op the attribute map used for has an OpProto);
      6. add code to manipulate Scalar proto message via protobuffer python API;
      
      Add unittests.
      
      1. add test cases for formatting, equality for Scalars, and WrapAsScalars;
      2. add test cases for 'casting' between different morphs of attributes;
      3. add test cases for extracting scalar & scalars from attribute;
      4. add test cases for CanonicalizeScalarAttrs(and fix a bug in type index offset);
      5. fix gmock's library filename on windows platform.
      6. clean code: use canonicalize_attrs instead of inlining the function;
      7. add test cases for libpaddle.Scalar in python code.
      8. add test cases for `make_scalar_proto`, which manipulate proto message `Scalar` via protobuffer python API.
      2e9fd5e4
    • G
      [CodeStyle][B020] rename iterable and it's iterates when they have same name (#52128) · c05feb90
      gouzil 提交于
      * [CodeStyle][B020] rename for
      
      * [CodeStyle][B020] rename for
      c05feb90
  9. 25 3月, 2023 1 次提交
  10. 23 3月, 2023 2 次提交
  11. 22 3月, 2023 2 次提交
  12. 20 3月, 2023 1 次提交
  13. 17 3月, 2023 1 次提交
  14. 16 3月, 2023 1 次提交
  15. 14 3月, 2023 1 次提交
  16. 12 3月, 2023 1 次提交
  17. 10 3月, 2023 1 次提交
  18. 09 3月, 2023 2 次提交
    • Z
      Remove paddle.fluid.layers.utils.* (#51033) · 86e990d4
      zqw_1997 提交于
      * move fluid.utils to paddle.utils.layers_utils
      
      * fix error
      
      * delete original fluid layers utils
      
      * remove import and old utils
      
      * remove more old utils import
      
      * change import path of fill_constant in the layers_utils.py
      
      * fix mistake
      
      * fix error
      
      * expose in __init__.py
      
      * for comment
      
      * when change the ref of func is_sequence, it should change to the root of is_sequence instead
      
      * for codecheck
      86e990d4
    • C
      fix prim test (#51385) · ef1aa8ce
      Charles-hit 提交于
      ef1aa8ce
  19. 08 3月, 2023 2 次提交
  20. 07 3月, 2023 1 次提交
  21. 28 2月, 2023 1 次提交
  22. 23 2月, 2023 1 次提交
  23. 21 2月, 2023 1 次提交
    • C
      [OpTest] support prim test in OpTest (#50509) · 457defe7
      Charles-hit 提交于
      * support prim test in OpTest
      
      * fix cmake
      
      * fix op test
      
      * fix test_input_spec
      
      * disable cinn in reduce_sum unit test
      
      * add bfloat16 dtype for sum
      
      * polish code
      
      * add clear jit program function
      
      * convert grad out from tensor to numpy
      
      * remove unnecessary code
      
      * add only_prim flag
      
      * fix flag
      
      * fix op test
      
      * fix optest comp inplace error
      
      * fix op test
      
      * fix op test with guard
      
      * add initialization of check_comp flag
      
      * fix comp inplace error in op test
      
      * rename check_comp with check_prim and add bfloat16 dtype convert
      
      * rename comp_op_type to prim_op_type
      
      * rename comp to prim
      
      * remove useless code
      
      * skip ci check for only prim
      
      * add no_grad_vars and grad_outputs in prim test
      
      * fix var_dict
      
      * fix op test for only_prim
      
      * fix dy2static bugs
      
      * polish some code
      457defe7
  24. 28 1月, 2023 1 次提交
    • Yj/eager op test part 1 (#49877) · 65bce2b3
      姜永久 提交于
      * update tril unbind ops for eager tests
      
      * add eager op test
      
      * reset unbind
      
      * lint
      
      * lint
      
      * rm eager checker
      
      * copyright 2018->2023
      65bce2b3
  25. 30 12月, 2022 1 次提交
  26. 01 12月, 2022 1 次提交
  27. 25 11月, 2022 1 次提交
  28. 08 11月, 2022 1 次提交
  29. 01 11月, 2022 1 次提交
  30. 23 10月, 2022 1 次提交
  31. 19 10月, 2022 1 次提交
  32. 12 10月, 2022 1 次提交
  33. 11 10月, 2022 1 次提交