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. 16 11月, 2021 1 次提交
  4. 03 3月, 2021 1 次提交
  5. 03 11月, 2020 1 次提交
  6. 21 10月, 2020 1 次提交
    • C
      2.0rc api rename (#28088) · 7c1aa0d6
      cnn 提交于
      * rename manual_seed to seed
      
      * rename xxx1d-->xxx1D, xxx2d-->xxx2D, xxx3d-->xxx3D
      
      * rename manual_seed --> seed
      
      * do not rename .cc, .cu and .h file
      
      * rename manual_seed --> seed
      
      * rename manual_seed --> seed
      
      * rename manual_seed --> seed
      
      * rename manual_seed --> seed
      
      * disable_static on doc example code
      
      * donot change manual_seed on generator
      
      * add enable_static on sample code
      
      * convert python/paddle/fluid/layers/nn.py to bak
      
      * fix typo
      
      * fix code style
      
      * fix seed to manual_seed when call functions of Generator()
      
      * fix bug
      7c1aa0d6
  7. 10 10月, 2020 1 次提交
  8. 26 8月, 2020 1 次提交
  9. 25 5月, 2020 1 次提交
    • L
      Support NHWC in Pool2D, test=develop (#24240) · 9fd1aad6
      Leo Chen 提交于
      * support NHWC in Pool2D, test=develop
      
      * add unittest, test=develop
      
      * fix unittest, test=develop
      
      * fix typo, test=develop
      
      * follow comments, test=develop
      
      * refine comments, test=develop
      9fd1aad6
  10. 10 4月, 2020 1 次提交
  11. 18 12月, 2019 1 次提交
  12. 04 12月, 2019 1 次提交
  13. 21 11月, 2019 1 次提交
    • Z
      open dygraph op test, test=develop (#19787) · c4ede95c
      zhongpu 提交于
      * open dygraph op test, test=develop
      
      * modify to_variable, test=develop
      
      * modify input and output for dygraph, test=develop
      
      * modify input and output for dygraph(fix bug), test=develop
      
      * fix input processing of dygraph op test, test=develop
      
      * fix bug, test=develop
      
      * fix op test, test=develop
      
      * fix forward bug for dygraph, test=develop
      
      * fix mkldnn op test for forward, test=develop
      
      * update nn.py for dygraph, test=develop
      
      * fix crop_tensor_op, test=develop
      
      * fix elementwise_mul_op, test=develop
      
      * fix fill_op, test=develop
      
      * fix some mkldnn op, test=develop
      
      * open backward op test for dygraph, test=develop
      
      * delete log, test=develop
      
      * close backward op test for dygraph, test=develop
      
      * fix bug for edit_distance_op and test_lstm_cudnn_op, test=develop
      
      * fix optest backward bug for dygraph, test=develop
      
      * fix optest backward bug for dygraph, test=develop
      
      * close backward op test for dygraph, test=develop
      
      * close backward op test for dygraph, test=develop
      
      * open dygraph op test, test=develop
      
      * fix op test for dygraph, fix GradOpDescMaker, test=develop
      
      * fix bug for linear_chain_crf_op.h, test=develop
      
      * remove log, test=develop
      
      * remove log, test=develop
      
      * remove log for op_test.py, test=develop
      
      * remove log for op_test.py, test=develop
      
      * fix bug for var_conv_2d_op, change PADDLE_ENFORCE, test=develop
      
      * fix PADDLE_ENFORCE_EQ for hierarchical_sigmoid_op.cc, test=develop
      
      * fix bug for test_increment_ngraph_op.py, test=develop
      
      * fix lod for op test in dygraph, test=develop
      
      * refactor op_test.py to reduce redundant code, test=develop
      
      * fix lod optest, modify InputVar/OutputVar to HasInput/HasOutput, test=develop
      
      * remove debug log, test=develop
      
      * remove redundant code in base.py, test=develop
      
      * fix some error in optest, test=develop
      
      * fix ClearNoNeedBufferInputs function's bug for LoDTensor, test=develop
      
      * refactor op_test.py, test=develop
      
      * remove redundant writing, test=develop
      
      * fix error(get tensor of the grad variable), test=develop
      
      * fix test_concat_mkldnn test_conv2d_mkldnn, test=develop
      
      * fix optest.py for get tensor of LoDTensor, test=develop
      
      * fix optest.py for get tensor of LoDTensor, test=develop
      
      * fix optest.py for get tensor of LoDTensor, test=develop
      
      * fix some redundant code, test=develop
      
      * reslove conflict and rewrite paddle error message, test=develop
      c4ede95c
  14. 08 11月, 2019 1 次提交
    • L
      fix bug in pool/conv/conv_transpose: UpdatePaddingAndDilation,... · 26a6e27a
      liym27 提交于
      fix bug in pool/conv/conv_transpose: UpdatePaddingAndDilation, _get_padding_with_SAME and conv2dtranspose_forward_naive. (#20997)
      
      * fix bug in pool/conv/conv_transpose:
      1. It should be stride[i] not stride[0] in UpdatePaddingAndDilation;
      2. fix bug of func  _get_padding_with_SAME in test_conv/conv_transpose_op.py;
      3. fix bug of the computation process in function conv2dtranspose_forward_naive.
      test=develop
      
      * change test to make the data of different dimensions different. test=develop
      26a6e27a
  15. 06 11月, 2019 1 次提交
  16. 09 10月, 2019 1 次提交
  17. 28 9月, 2019 1 次提交
    • L
      fix pool2d pool3d,support asymmetric padding and channel_last (#19739) · 24010472
      liym27 提交于
      * fix pool2d pool3d:
      1. support asymmetric padding;
      2. support padding algorithm:"SAME" and "VALID";
      3. support channel_last: data_format NHWC and NDHWC;
      4. support inferring shape when input with negative dims in compile time;
      5. change doc of python API and c++;
      6. fix bug in cuda kernel when Attr(adaptive) is true.
      
      test=develop,test=document_preview
      
      * fix 'tensors' to 'Tensors'. test=develop,test=document_preview
      
      * add test for converage ValueError.test=develop,test=document_preview
      
      * resolve conflict in test_pool2d. test=develop
      24010472
  18. 26 9月, 2019 1 次提交
  19. 22 4月, 2019 1 次提交
  20. 02 1月, 2019 1 次提交
    • X
      Enable INT8 pool OP (#15046) · 8eb1f262
      xiaolil1 提交于
      * Enable INT8 pool OP
      test=develop
      
      * fix unittest
      test=develop
      
      * Clean unittest code.
      test=develop
      8eb1f262
  21. 29 12月, 2018 1 次提交
  22. 11 12月, 2018 1 次提交
  23. 07 11月, 2018 1 次提交
    • C
      Add fp16 backward support (#14202) · a9b5d42d
      chengduo 提交于
      * add fp16 backward support
      test=develop
      
      * add sum_op fp16 test
      
      * disable test_dist_save_load
      test=develop
      
      * add check_grad for sum
      
      * add unit test for softmax_grad fp16
      test=develop
      
      * add scale_op unit test
      
      * add mul_grad_op unit test for fp16
      
      * add cross_entropy_grad and eman_grad unit test for fp16
      test=develop
      
      * fix cross_entropy unit test
      
      * add pool2d fp16 unit test
      
      * refine conv2d fp16 unit test
      test=develop
      
      * refine activation unit test
      test=develop
      
      * fix ci
      test=develop
      
      * follow zhihong's comment, copy from https://github.com/PaddlePaddle/Paddle/pull/12796
      test=develop
      a9b5d42d
  24. 29 10月, 2018 2 次提交
  25. 15 8月, 2018 1 次提交
  26. 07 8月, 2018 1 次提交
    • M
      Fix pybind11 problem · 6abe819f
      minqiyang 提交于
      Fix str and bytes problem
      Fix sorted problem
      Fix math problem
      Fix CI problem
      6abe819f
  27. 26 7月, 2018 2 次提交
  28. 17 4月, 2018 1 次提交
  29. 07 4月, 2018 1 次提交
  30. 17 3月, 2018 2 次提交
  31. 10 3月, 2018 1 次提交
  32. 28 2月, 2018 1 次提交
  33. 24 2月, 2018 2 次提交
  34. 13 2月, 2018 1 次提交
    • X
      Run Python OP tests in a single Python process to improve test time. (#8362) · cde6241a
      Xin Pan 提交于
      Currently, our tests run with 2 GPUs, the init time is absurdly long:
      about 4s for each process.  Currently, we run each OP test on
      different processes. This PR:
      
      1. create cmake function py_test_modules which will generate the
      Makefile that runs a list of Python unittest module in a single Python
      process.
      
      2. move all "python unittest compatible" (e.g., used the unittest
      package, not just a regular python file). from fluid/tests to
      fluid/tests/unittests.
      
      3. cmake now will run all OP tests in fluid/tests/unittests in a
      single process, except the time-consuming tests, they are separated
      into different processes to utilize parallelism. Please make sure to
      use the unittest package if you put the python test file in
      fluid/tests/unittests
      
      4. remove all exit(0) from fluid/tests/unittests/*.py, exit(0) is used
      to disable unittest, we can not do it when running all tests in a
      single process since it will terminate the process without running the
      other tests. Instead, the test is disabled in
      fluid/tests/unittests/CMakeLists.txt. FIXME is added for each disabled
      item. Please disable the unittest from
      fluid/tests/unittests/CMakeLists.txt, instead of adding exit(0) to the
      Python file, for all Python file in fluid/tests/unittests/.
      
      5. add an option WITH_FAST_BUNDLE_TEST. When OFF, will run the unit
      tests in separate process so that they can be tested individually.
      cde6241a
  35. 12 2月, 2018 1 次提交
  36. 21 1月, 2018 1 次提交
    • D
      "fix decode bug" (#7711) · e983cc90
      dzhwinter 提交于
      * "fix decode bug"
      
      * "follow commnet"
      
      * "fix error"
      
      * "fix hook bug"
      
      * fix based comment
      
      * fix copyright
      
      * fix based on comment
      e983cc90