1. 28 2月, 2023 1 次提交
  2. 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
  3. 23 2月, 2023 1 次提交
  4. 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
  5. 30 12月, 2022 1 次提交
  6. 01 12月, 2022 1 次提交
  7. 25 11月, 2022 1 次提交
  8. 08 11月, 2022 1 次提交
  9. 01 11月, 2022 1 次提交
  10. 23 10月, 2022 1 次提交
  11. 19 10月, 2022 1 次提交
  12. 12 10月, 2022 1 次提交
  13. 11 10月, 2022 1 次提交
  14. 27 9月, 2022 1 次提交
  15. 14 9月, 2022 1 次提交
  16. 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
  17. 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
  18. 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
  19. 04 8月, 2022 1 次提交
  20. 03 8月, 2022 1 次提交
  21. 01 8月, 2022 1 次提交
  22. 29 7月, 2022 1 次提交
  23. 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
  24. 27 6月, 2022 1 次提交
  25. 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
  26. 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
  27. 01 6月, 2022 1 次提交
  28. 12 5月, 2022 1 次提交
  29. 28 4月, 2022 1 次提交
  30. 27 4月, 2022 1 次提交
  31. 24 4月, 2022 1 次提交
  32. 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
  33. 03 4月, 2022 2 次提交
  34. 02 4月, 2022 1 次提交
  35. 01 4月, 2022 2 次提交
  36. 30 3月, 2022 2 次提交
  37. 27 3月, 2022 1 次提交