1. 03 9月, 2023 1 次提交
    • C
      【New IR】New ir op test v1.1(sum passed) (#56756) · e2af9d56
      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
      
      * new ir sum op test all pass
      
      * 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
      
      * add check_new_ir flag for mkldnn
      
      * clean
      
      ---------
      Co-authored-by: Nwangruting <wangruting@baidu.com>
      e2af9d56
  2. 31 8月, 2023 2 次提交
  3. 14 8月, 2023 1 次提交
    • K
      [NewIR]test new ir op test in gpu (#55857) · 8f6446d3
      kangguangli 提交于
      * add ir output check in OpTest
      
      * add ir grad check in op test
      
      * fix bug in output check
      
      * trigger CI
      
      * test gpu ci
      
      * trigger CI
      
      * trigger CI
      
      * add white list to relax precision check for some tests
      
      * relax timeout of test_concat_op
      
      * relax timeout of test_concat_op
      8f6446d3
  4. 09 8月, 2023 1 次提交
  5. 31 7月, 2023 1 次提交
  6. 27 7月, 2023 1 次提交
  7. 25 7月, 2023 1 次提交
  8. 18 7月, 2023 1 次提交
  9. 13 7月, 2023 1 次提交
  10. 06 7月, 2023 1 次提交
  11. 04 7月, 2023 1 次提交
  12. 14 6月, 2023 1 次提交
    • C
      [prim] move batch_norm prim test to op_test (#54458) · 58b4c60f
      cyber-pioneer 提交于
      * move batch_norm prim test to op_test
      
      * fix optest bug
      
      * add test to cmake
      
      * add cinn test case
      
      * fix batch_norm prim grad bf16
      
      * fix code
      
      * add cuda check
      
      * fix batch_norm bfloat16
      
      * fix cpu bfloat16 bug
      
      * skip non-bfloat16-supported platform
      
      * fix code
      
      * fix cinn rtol and atol in bfloat16
      
      * fix name
      
      * fix config
      58b4c60f
  13. 12 6月, 2023 1 次提交
  14. 09 6月, 2023 1 次提交
  15. 05 6月, 2023 1 次提交
    • S
      【Complex Op】Remove user defined grad (#54090) · b00ed3f6
      Scotty 提交于
      * clean complex_abs op
      
      * clean complex_op test
      
      * clean complex_view_op test
      
      * clean elementwise_mul_op test
      
      * clean conj_op test
      
      * clean dot_op test
      
      * clean elementwise_add_op test
      
      * clean kron_op test
      
      * clean matmul_v2_op test
      
      * remove unsed function
      
      * remove elementwise_sub_op test
      
      * clean elementwise_div test
      b00ed3f6
  16. 01 6月, 2023 2 次提交
    • zhouweiwei2014's avatar
    • T
      mv all unittests test (#53235) · b0e86d55
      tianshuo78520a 提交于
      * mv all unittests test
      
      * fix error
      
      * fix error
      
      * fix
      
      * fix
      
      * del unittests
      
      * fix paddle_build.sh
      
      * fix
      
      * fix test
      
      * fix add test
      
      * fix
      
      * fix
      
      * fix
      
      * merge develop
      
      * fix
      
      * fix
      
      * fix
      
      * fix
      
      * fix
      
      * merge develop
      
      * fix test_async_read_write
      
      * fix test_async_read_write
      
      * merge develop
      
      * fix
      
      * fix import legacy_test
      
      * fix
      
      * fix
      
      * fix
      
      * fix
      
      * fix
      
      * fix
      
      * fix
      
      * fix
      
      * fix bug
      
      * fix
      
      * fix coverage test bug
      
      * fix
      
      * fix
      
      * fix
      
      * fix
      
      * fix
      
      * fix code sstyle
      
      * fix code
      
      * fix code
      
      * fix
      
      * fix
      
      * fix
      
      * del test_sequence_enumerate_op.py
      
      * fix
      b0e86d55
  17. 23 5月, 2023 1 次提交
  18. 18 5月, 2023 1 次提交
  19. 10 5月, 2023 1 次提交
  20. 08 5月, 2023 1 次提交
    • G
      add complex support for optest (#53356) · e522ceb7
      GGBond8488 提交于
      * add complex support for  optest
      
      * add complex grad test
      
      * append one
      
      * move some debug info
      
      * move some debug info
      
      * move some debug info
      
      * move some debug info
      
      * add more complex test
      
      * Fix naming ambiguity
      
      * Revert "add more complex test"
      
      This reverts commit dbcb0516b8e53ba42e2d6089878a39b395345969.
      
      * change backward gradient, add TODO
      e522ceb7
  21. 28 4月, 2023 1 次提交
  22. 13 4月, 2023 1 次提交
  23. 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
  24. 07 4月, 2023 1 次提交
  25. 06 4月, 2023 2 次提交
  26. 04 4月, 2023 2 次提交
  27. 03 4月, 2023 1 次提交
  28. 31 3月, 2023 1 次提交
  29. 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
  30. 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
  31. 25 3月, 2023 1 次提交
  32. 23 3月, 2023 2 次提交
  33. 22 3月, 2023 2 次提交