1. 09 9月, 2022 1 次提交
  2. 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
  3. 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
  4. 04 8月, 2022 1 次提交
  5. 02 8月, 2022 1 次提交
    • W
      [Eager] use eager final state instead intermediate state (#44722) · f1873b90
      Weilong Wu 提交于
      * [Eager] call final_state_slice under eager mode
      
      * rm useless comments
      
      * use eager final state instead intermidiate state
      
      * update fill_constant yaml
      
      * update fill_constant yaml
      
      * modify wrapped_infermeta_gen logic to fix special case
      
      * fix slice in manipulation
      
      * use fill_constant_
      
      * modify slice infermeta
      
      * rm final_state_conv2d
      
      * use final_state_slice
      
      * use final_state_slice only
      
      * polish slice, use final state
      
      * add paddle_throw for SplitInferMeta
      
      * rm fill_constant_ temply
      
      * recover array_equal, not allclose
      
      * recover original code
      f1873b90
  6. 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
  7. 13 4月, 2022 1 次提交
  8. 04 4月, 2022 1 次提交
    • H
      Add dropout yaml (#41355) · 1c7001e7
      hong 提交于
      * add dropout slice yaml
      
      * remove useless code
      
      * fix infer shape error
      
      * skip infrt compile for dropout
      1c7001e7
  9. 27 3月, 2022 1 次提交
    • H
      Move slice to phi (#40736) · b8236b7b
      hong 提交于
      * move slice to pten
      
      * merge develop; test=develop
      
      * fix slice bug;
      
      * update
      
      * update
      
      * fix error
      
      * update
      
      * fix bug
      
      * polish code
      
      * polish code
      
      * polish code
      
      * try to fix windows bug
      
      * add gpu compile flag;
      
      * try to fix
      
      * remov template;
      
      * polish code;
      
      * fix npu bug;
      
      * fix npu bug
      
      * fix npu bug; test=develop
      
      * fix slice bug;
      
      * remove no need dep
      b8236b7b
  10. 10 2月, 2022 1 次提交
  11. 14 9月, 2021 1 次提交
  12. 01 9月, 2021 1 次提交
  13. 27 8月, 2021 1 次提交
  14. 10 6月, 2021 1 次提交
  15. 06 1月, 2021 1 次提交
  16. 10 8月, 2020 1 次提交
  17. 20 5月, 2020 1 次提交
  18. 15 5月, 2020 1 次提交
    • L
      Support int32 int64 and fix bug (#24407) · 615a8bfc
      liym27 提交于
      * Compatible int32 and int64 for attr in op slice/strided_slice. test=develop
      
      * Polish code in nn.py  test=develop
      
      * Fix bug: set the same dtype for the inputs of elementwise_add. test=develop
      
      * Convert int32 to int64 in slice op to avoid data overflow. test=develop
      
      * Convert int32 to int64 in strided_slice_op to avoid data overflow. test=develop
      615a8bfc
  19. 30 4月, 2020 1 次提交
    • L
      [Dy2Stat]Support LoDTensorArray for slice op (#23091) · 80355949
      liym27 提交于
      * Support LoDTensorArray for slice op.
      * Support read elements of list in dygraph_to_static
      * Fix infershape add test for infershape.
      * Support Tensor for Attr(starts) and Attr(ends). 
      * Use new interfaces in VarTypeInference. 
      80355949
  20. 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
  21. 20 12月, 2019 1 次提交
  22. 02 12月, 2019 1 次提交
  23. 17 9月, 2019 1 次提交
    • L
      add tensor(tensor and tensor in list) support for argument starts and ends in slice op; (#19208) · 88628016
      liym27 提交于
      add support parameter inference when arguments starts or ends is a list containing integer and tensor variable;
      test=develop,test=document_preview
      
      improve slice op according to review(from hongyu). test=develop
      
      fix slice op according to review: infer_flags, test=develop
      
      fix slice op: improve overload operator __getitem__ to support attrs(starts and ends) are Variable.
      test=develop,test=document_preview
      
      fix test_slice_op: add TestSliceOp_decs_dim_6 to resolve conflict with test_slice_ngraph_op. test=develop
      
      add stop_gradient=True when attr(starts) or attr(ends) is tensor Variable.
      test=develop,test=document_preview
      88628016
  24. 20 6月, 2019 1 次提交
  25. 19 3月, 2019 2 次提交
  26. 15 3月, 2019 1 次提交
  27. 17 9月, 2018 1 次提交
  28. 15 8月, 2018 1 次提交
  29. 26 7月, 2018 2 次提交
  30. 11 6月, 2018 1 次提交
    • W
      Add slice op. (#11052) · adc09087
      whs 提交于
      * Add slice op.
      
      * Remove using from header file and fix doc.
      
      * Fix doc
      
      * Small fix.
      adc09087