1. 22 11月, 2022 1 次提交
    • U
      [Docs]fix math api en docs issue (#47448) · 94c6ec86
      ustiniankw 提交于
      * fix_docx_stanh
      
      * fix einsum api en docs issue
      
      * fix model api en docs issue
      
      * for codestyle
      
      * fix_einsum.py_einsum, test=document_fix
      
      * fix_model.py_Model, test=ducument_fix
      
      * fix_creation.py_meshgrid, test=document_fix
      
      * fix_linalg.py_slogdet, test=document_fix
      
      * fix_loss.py_SoftMarginLoss_CrossEntropyLoss_NLLLoss_BCELoss, test=document_fix
      
      * norm.py_SyncBatchNorm, test=document-fix
      
      * norm.py_SyncBatchNorm, test=document_fix
      
      * norm.py_SyncBatchNorm, test=document_fix
      
      * list18-30, test=document_fix
      
      * refix_list1-15, test=document_fix
      
      * deletefiles, test=document_fix
      
      * fixedapi_pre-commit, test=document_fix
      
      * fix_list31-45, test=document_fix
      
      * list111, test=document_fix
      
      * some_fix, test=document_fix
      
      * some_fix, test=document_fix
      
      * somefix, test=document_fix
      
      * somefix, test=document_fix
      
      * refix, test=document_fix
      
      * refix, test=document_fix
      
      * refix, test=document_fix
      
      * refix, test=document_fix
      
      * rerfix, test=document_fix
      Co-authored-by: 梦柳's avatarLigoml <limengliu@tiaozhan.com>
      94c6ec86
  2. 01 11月, 2022 1 次提交
    • N
      [CodeStyle][E711] use `is`/`is not` for comparison with `None` (#47452) · a35a4a53
      Nyakku Shigure 提交于
      * [CodeStyle][E711] use `is`/`is not` for comparison with `None`
      
      * `self.assertTrue($A is None)` -> `self.assertIsNone($A)`
      
      * `self.assertTrue($A is not None)` -> `self.assertIsNotNone($A)`
      
      * `self.assertFalse($A is None)` -> `self.assertIsNotNone($A)`
      
      * `self.assertEqual($A, None)` -> `self.assertIsNone($A)`
      
      * `self.assertNotEqual($A, None)` -> `self.assertIsNotNone($A)`
      a35a4a53
  3. 31 10月, 2022 1 次提交
    • X
      [Einsum] Einsum support repeated labels. (#47290) · 6e1c14e3
      xiongkun 提交于
      * add unittest for einsum-v2-trace and diagonal
      
      * repeat labels.
      
      * einsum support repeated labels.
      
      * forward is ok for diagonal and undiagonalized.
      TODO: check backward is ok by our theorem.
      
      * backward is ok!
      
      * fix by PR suggestions.
      
      * fix ci error
      
      * fix ci error
      
      * fix ci warning
      6e1c14e3
  4. 23 10月, 2022 1 次提交
  5. 12 10月, 2022 1 次提交
  6. 11 10月, 2022 2 次提交
  7. 10 10月, 2022 1 次提交
  8. 08 10月, 2022 1 次提交
  9. 14 9月, 2022 1 次提交
  10. 26 8月, 2022 1 次提交
  11. 14 6月, 2022 1 次提交
    • X
      [ Make FLAGS_einsum_opt as default ] Einsum memory optimization (#43397) · 83abec60
      xiongkun 提交于
      * change logic for optimize
      
      * modifty
      
      * optimize the backward speed of EinsumOp
      
      * add cache optimizer for einsum op
      
      * EinsumOp: fix new dygraph mode error
      
      * fix bug
      
      * change Cache->InnerCache
      
      * fix code
      
      * fix
      
      * add nan inf utils for einsum op
      
      * add as_extra
      
      * memory optimizer for einsum
      
      * update code
      83abec60
  12. 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
  13. 27 5月, 2022 1 次提交
  14. 25 5月, 2022 1 次提交
    • X
      [EinsumOp] Optimize the backward speed of EinsumOp (#42663) · 71b046cd
      xiongkun 提交于
      * change logic for optimize
      
      * modifty
      
      * optimize the backward speed of EinsumOp
      
      * add cache optimizer for einsum op
      
      * EinsumOp: fix new dygraph mode error
      
      * fix bug
      
      * change Cache->InnerCache
      
      * fix code
      
      * fix
      
      * add nan inf utils for einsum op
      
      * add as_extra
      
      * Compatible with v2.3 EinsumOp
      
      * remove dispensable
      71b046cd
  15. 29 4月, 2022 1 次提交
    • X
      Make einsum_v2 support multi-operands (#42327) · 32cae24c
      xiongkun 提交于
      * Extend python einsum interface to make einsum_v2 support multi-operands and switch it to default.
      
      * add opt_einsum dependence
      
      * add yaml and support eager model
      
      * fix by code review
      32cae24c
  16. 26 4月, 2022 1 次提交
  17. 15 3月, 2022 1 次提交
  18. 22 2月, 2022 1 次提交
  19. 17 11月, 2021 1 次提交
  20. 13 8月, 2021 1 次提交
    • T
      New Einsum API (#33821) · 8c8667f0
      Tongxin Bai 提交于
      * OP dot: refactor CPU kernels and get better loop performance.
      
      * Minor fix on code format.
      
      * Fixed minor errors.
      
      * Add new API: einsum
      
      * Update the Einsum unit test.
      
      One case failed with matmul_v2, where the dtype is int64:
      
      a = np.arange(2 * 3 * 1).reshape(2, 3, 1)
      b = np.arange(1)
      paddle.einsum("...i, ...i", a, b)
      
      * Test cases in test_einsum test floating point dtypes only.
      
      As of now Paddle only supports float/double dtypes in matmul, which is
      one of building blocks of this Einsum implementation. We decide not to
      test einsum against other dtypes.
      
      * Polish format.
      
      * More formatting.
      
      * Format...
      
      * Einsum: improve test coverage.
      
      * Einsum: bug fixes and more testcases for testing error messages
      
      * Einsum: fix format..
      
      * Einsum: fixed typo and format.
      
      * Einsum: format again...
      
      * Einsum: applied suggested changes.
      
      * Einsum API: improve API documentation.
      
      * Einsum API: apply suggested changes.
      
      * Einsum API: Add dygraph only note.
      
      * Einsum API: Add dygraph only note.
      
      * Einsum API: fixed unittest.
      8c8667f0