1. 10 3月, 2023 1 次提交
  2. 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
  3. 08 3月, 2023 1 次提交
  4. 07 3月, 2023 1 次提交
  5. 06 3月, 2023 1 次提交
  6. 02 3月, 2023 1 次提交
  7. 01 3月, 2023 1 次提交
    • D
      [XPU] Add kernels for VITDET (#50992) · 798b527c
      duanyanhui 提交于
      * add support of int64 add for xpu
      
      * add transpose support for int64
      
      * add randperm kernel
      
      * fix randperm
      
      * add distribute_fpn_proposal kernel
      
      * fix comment
      
      * add reduce_sum_int32
      798b527c
  8. 28 2月, 2023 1 次提交
  9. 25 2月, 2023 1 次提交
    • V
      change outputs and grads from fp16-fp16-comparision and fp16-fp32 (#50700) · 2dec64d0
      Vvsmile 提交于
      * change outputs and grads from fp16-fp16-comparision and fp16-fp32
      comparision
      
      * support grad comparision fp16-fp32
      
      * the change of reference dtype only occured from np.float16 to np.float32
      
      * fix the list type can not infer the dtype by attribute dtype by transfer
      the list to array
      
      * adjust the default atol and rtol of float16 to 1e-3
      
      * Polish code
      
      * fix error
      
      * fix
      
      * Polish code
      
      * fix the _is_cal_ref and np.float16
      
      * fix the combination of is_calc_ref and np.float16
      
      * remove unuseful codes in op_test.py
      
      * fix ci
      
      * fix the rtol set in the dygraph checker and eager checker
      
      ---------
      Co-authored-by: NZzSean <18818272991@163.com>
      2dec64d0
  10. 23 2月, 2023 1 次提交
  11. 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
  12. 30 12月, 2022 1 次提交
  13. 01 12月, 2022 1 次提交
  14. 25 11月, 2022 1 次提交
  15. 08 11月, 2022 1 次提交
  16. 01 11月, 2022 1 次提交
  17. 23 10月, 2022 1 次提交
  18. 19 10月, 2022 1 次提交
  19. 12 10月, 2022 1 次提交
  20. 11 10月, 2022 1 次提交
  21. 27 9月, 2022 1 次提交
  22. 14 9月, 2022 1 次提交
  23. 17 8月, 2022 1 次提交
    • N
      [CodeStyle][NPU] use np.testing.assert_allclose instead of... · 2de0d676
      Nyakku Shigure 提交于
      [CodeStyle][NPU] use np.testing.assert_allclose instead of self.assertTrue(np.allclose(...)) (part 1) (#44988)
      
      * autofix
      
      * try resolve precision issues
      
      * revert some changes
      
      * clean some `err_msg`
      
      * 0.0001 -> 1e-4
      
      * update commented assert code
      
      * try to fix some shape errors
      
      * `numpy` -> `np`
      
      * empty commit, trigger kunlun ci, test=kunlun
      
      * empty commit, retrigger kunlun ci, test=kunlun
      
      * empty commit, trigger kunlun ci, try fix npu memcpy_h2d, test=kunlun
      
      * try fix npu import error, test=kunlun
      2de0d676
  24. 12 8月, 2022 1 次提交
    • H
      [phi] Transfer linear_interp_v2 yaml to phi (#45072) · c737232f
      HongyuJia 提交于
      * support optional<vector<Tensor>> in yaml and eager
      
      * delete useless comments in eager_gen.py
      
      * fix api_base.py support optional<vector<TTensor>>
      
      * python_c_gen.py support optional<vector<tensor>>
      
      * transfer linear_interp_v2 yaml from fluid to phi
      
      * fix op_test typo error
      
      * change linear_interp_v2 testcase
      
      * fix args in final_state_linear_interp_v2
      
      * fix zeropad2d typo. test=document_fix
      c737232f
  25. 10 8月, 2022 1 次提交
    • N
      [CodeStyle] use np.testing.assert_array_equal instead of... · 93c5c887
      Nyakku Shigure 提交于
      [CodeStyle] use np.testing.assert_array_equal instead of self.assertTrue(np.array_equal(...)) (#44947)
      
      * automatically fix
      
      * update comments
      
      * numpy -> np
      
      * self.assertEqual(..., True)
      
      * wrong usage (err_msg=True)
      
      这不是修复导致的错误,这些是原来 `self.assertTrue(..., True)`
      的错误用法,因此在修复后将其认为位置参数 `err_msg`
      
      * some missing fix
      93c5c887
  26. 04 8月, 2022 1 次提交
  27. 03 8月, 2022 1 次提交
  28. 01 8月, 2022 1 次提交
  29. 29 7月, 2022 1 次提交
  30. 19 7月, 2022 1 次提交
    • W
      [Phi] Migrate infermeta and add yaml for solve op (#44379) · 5dfb87d9
      Weilong Wu 提交于
      * migrate solve kernel to phi
      
      * re useless header file, fix a bug in grad_kernel_impl
      
      * add header file in need
      
      * add yaml for solve op
      
      * fix solve_sig.cc ArgumentMapping and update tests case
      
      * disable legacy dygraph check in op_test
      
      * rm solve_op.cc / solve_sig.cc and migrate yaml config
      
      * Update op_test.py
      
      disable legacy dygraph check when check_eager is True
      5dfb87d9
  31. 27 6月, 2022 1 次提交
  32. 14 6月, 2022 1 次提交
    • Z
      Fix numpy 1.20+ deprecation warnings (#42929) · 90cf2299
      zlsh80826 提交于
      * Replace np.bool/np.bool8 with np.bool_
      
      * Replace np.object with np.object_
      
      * Replace np.complex with np.complex128
      
      * Replace np.float with np.float64
      
      * Replace np.int with np.int_
      
      * Rerun pre-commit for newer pre-commit configuration
      
      * Use builtin bool instead of np.bool_ based on the context
      90cf2299
  33. 05 6月, 2022 1 次提交
    • S
      【code format check upgrade】 step2:yapf (#42944) · a072fca8
      Sing_chan 提交于
      * use yapf to format all python file
      
      * yapf exclude two unittests file for they rely on writing and reading file, and format will break them
      
      * disable diff_py_file because too many diff files cause command following failed
      a072fca8
  34. 01 6月, 2022 1 次提交
  35. 12 5月, 2022 1 次提交
  36. 28 4月, 2022 1 次提交
  37. 27 4月, 2022 1 次提交
  38. 24 4月, 2022 1 次提交
  39. 04 4月, 2022 1 次提交
    • H
      Add expand as sigmoid api (#41311) · fa250aa1
      hong 提交于
      * update epxand and sigmoid with cross entropy
      
      * skip expand as infrt check
      
      * fix sigmoid cross entropy bug
      
      * remove no grad set white list
      
      * remove no grad set
      
      * fix bug
      
      * fix sigmoid error
      
      * fix bug
      fa250aa1