1. 15 12月, 2022 1 次提交
  2. 29 11月, 2022 1 次提交
  3. 23 10月, 2022 1 次提交
  4. 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
  5. 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
  6. 28 3月, 2022 1 次提交
  7. 07 12月, 2020 1 次提交
  8. 04 12月, 2020 1 次提交
    • C
      Make transpose, trace, kron, reshape, sum op support complex type (#29321) · 879e913b
      chentianyu03 提交于
      * add complex64 and complex128 type; add +-*/@ and slice opreator for complex types
      
      * add test cases for complex elementwise, matmul and getitem unittest
      
      * add test cases for complex types
      
      * add test cases for complex matmul unittest
      
      * kron, reshape, transpose support complex types
      
      * sum and trace op support complex types
      
      * add test case of sum and trace op
      
      * fix the bug of imag part of complex not initialized
      
      * format file
      
      * format code style
      
      * kron support type promotion; modify test cases
      879e913b
  9. 28 4月, 2020 1 次提交
  10. 27 4月, 2020 1 次提交
    • L
      Add trace op (#23873) · 077e5a0f
      Li Fuchen 提交于
      * add trace op, test=develop
      
      * Optimized the implementation of trace op, test=develop
      
      * fix a bug of include in trace_op.h, test=develop
      
      * move trace API from creation to math, test=develop
      
      * modified en doc. test=develop
      
      * add complex trace api
      
      * add complex sum api, test=develop
      
      * modified en doc of complex sum and trace, test=develop
      
      * modified doc and trace API, test=develop
      
      * modified en doc of trace and sum, test=develop
      
      * modified comment in complex kron API, test=develop
      
      * OP Should Not Have Unused Input, test=develop
      
      * add GetExpectedKernelType, test=develop
      077e5a0f