1. 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
  2. 30 11月, 2020 1 次提交
  3. 27 10月, 2020 1 次提交
    • C
      Enrich the python error types of paddle & polish format (#28124) · 813b2ade
      Chen Weihang 提交于
      * add multiple exception type
      
      * define all exception & polish compile pystack
      
      * mapping paddle error to python exception
      
      * polish static mode error format
      
      * fix failed unittests
      
      * fix dytostatic test_error
      
      * fix check_nan_inf failed
      
      * add unittest for coverage
      
      * revert some code try to solve compile error
      
      * refactor enforce & error change
      
      * polish code & add unittest
      813b2ade
  4. 27 8月, 2020 1 次提交