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. 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
  3. 10 2月, 2022 1 次提交
  4. 15 1月, 2021 1 次提交
    • P
      Add Inplace strategy (Output reuse Input Varbase) in dygraph (#30103) · 13d75736
      pangyoki 提交于
      * add view strategy on squeeze,unsqueeze,reshape,flatten
      
      * add squeeze unittest
      
      * add unittests
      
      * use View strategy as name rather than Reuse Allacation
      
      * fix view api doc
      
      * fix format
      
      * use core.ops when input of reshape2 is Tensor
      
      * fix test_cross_entropy_loss error because of reshape2
      
      * fix test_cross_entropy_loss error because of reshape2
      
      * add inplace strategy
      
      * add elementwise_add sub
      
      * let backward op not use inplace
      
      * grad op do not use inplace
      
      * fix memory increase error and add leaf error message
      
      * delete selected_rows
      
      * change op_function
      
      * little change
      
      * solve HandleViewBetweenInputAndOutput
      
      * add unittest and leaf error message
      
      * merge view error
      
      * optimize op_function_generator format and support sum inplace op
      
      * fix format of basic_engine
      
      * fix format for framework
      
      * little change of variable wrapper
      
      * add reshape, squeeze, unsqueeze, scatter api
      
      * add relu elu tanh softmax inplace api
      
      * fix test_squeeze_op unittest
      
      * fix test_relu_op unittest
      
      * fix comment problems
      
      * delete sample code of inplace api
      
      * add reference of grad_pending_nodes in basic_engine
      
      * fix unittest name
      
      * add inplace apis into wlist
      
      * fix error message
      
      * add PADDLE_ENFORCE for set grad op twice
      
      * fix head file error
      13d75736
  5. 20 11月, 2020 1 次提交
  6. 12 10月, 2020 1 次提交
  7. 23 7月, 2020 1 次提交
    • L
      Refine squeeze, test=develop (#25281) · 4ec1251a
      Leo Chen 提交于
      * refine squeeze, test=develop
      
      * update squeeze, test=develop
      
      * refine compile-time infershape, test=develop
      
      * add more unittest, test=develop
      
      * follow comments, test=develop
      
      * add update_api, test=develop
      
      * follow comments, test=develop
      4ec1251a
  8. 23 4月, 2020 1 次提交
    • Q
      add gather split squeeze stack unsqueeze api (#24035) · 13b03e7a
      Qinghe JING 提交于
      * add gather split squeeze stack unsqueeze api test=develop
      
      * add gather split squeeze stack unsqueeze api test=develop
      
      * fix bug test=develop
      
      * fix bug test=develop
      
      * fix bug test=develop
      
      * fix bug test=develop
      
      * fix bug test=develop
      13b03e7a
  9. 06 1月, 2020 1 次提交
    • Z
      all cases use large shape (#22091) · 8b3ef2a5
      zhupengyang 提交于
      enhanced ops: unsqueeze, squeeze2, strided_slice, unsqueeze,
      unsqueeze2, var_conv_2d, spectral_norm, slice, match_matrix_tensor,
      nce, pad, pad_constant_like, filter_by_instag
      8b3ef2a5
  10. 20 12月, 2019 1 次提交
  11. 12 12月, 2019 1 次提交
    • Z
      fix input shape of op tests (#21682) · 4c987a60
      zhupengyang 提交于
      * fix input shape of op tests for elementwise_sub,
      gather, pad2d, transpose, softmax, scale,
      elementwise_max, hierarchical_sigmoid, reshape2,
      sign, squeeze, reduce_sum, sum, squeeze2,
      unsqueeze, unsqueeze2, cast, reverse
      
      test=develop
      
      * fix cast, elementwise_mul, gather, scale, sign,
      softmax, transpose
      
      test=develop
      4c987a60
  12. 02 12月, 2019 1 次提交
  13. 09 10月, 2019 1 次提交
  14. 16 9月, 2019 1 次提交
  15. 06 9月, 2018 1 次提交
  16. 20 8月, 2018 1 次提交
  17. 15 8月, 2018 1 次提交
  18. 26 7月, 2018 2 次提交
  19. 05 7月, 2018 1 次提交
  20. 03 7月, 2018 1 次提交
  21. 02 7月, 2018 1 次提交