1. 17 12月, 2019 3 次提交
  2. 16 12月, 2019 8 次提交
  3. 15 12月, 2019 2 次提交
  4. 14 12月, 2019 2 次提交
  5. 13 12月, 2019 3 次提交
  6. 12 12月, 2019 8 次提交
  7. 11 12月, 2019 1 次提交
  8. 10 12月, 2019 3 次提交
  9. 09 12月, 2019 5 次提交
  10. 06 12月, 2019 5 次提交
    • H
      Add Much Complex Test and Fix Bugs for Control Flow cond API (#21532) · 1dcf6a72
      Huihuang Zheng 提交于
      Add tests to use dy/dx to make sure the gradient values calculated by the control flow backward is correct. Also fixed bugs detected by those tests.
      
      Fix bugs:
      
      1. Unlike sum_op, optimizer ops don't allow uninitialized input tensor. But in conditional_block_grad_op, since the conditional_block may not run, the output gradient tensor may be uninitialized, which will cause the optimizer op error. To fix it, we should let optimizer ops support uninitialized input like sum_op or assign the uninitialized gradient to 0 when the conditional_block_grad_op doesn't run. I found there are about 10+ optimizer ops. **To be simpler, I just assign output gradient of the conditional_block_grad_op to 0 in this PR**. But it can be further explored whether we can make optimizer ops like sum_op to support uninitialized input tensor because theoretically we can speed up without the assigning in conditional_block_grad_op.
      
      2. Infer parameter shapes during append_backward. I didn't know that all our parameters are in global block. When op_desc is inferring shapes at the sub-block, it may not know the shape of gradients of parameters whose shape information is at global block. I fixed it by inferring shapes of gradients from forward var.
      
      This PR also did some code clean up:
      1. Print the var name when sgd_op catches shape error so that it is easier to debug
      2. Fix a typo: dicta -> dict
      1dcf6a72
    • H
      Paddlebox Related to Framework (#21586) · c5aec2fe
      hutuxian 提交于
      * Add a single_process_multi_thread transpiler.
      * Add some UTs.
      * Fix some API description.
      c5aec2fe
    • L
      add file check_op_desc.py and add interface to get default value. (#21530) · 9da7e6b4
      liym27 提交于
      * add file check_op_desc.py and add interface to get default value. test=develop
      
      * add test for c++ coverage rate. test=develop
      
      * Correct typo. test=develop
      9da7e6b4
    • F
      add fluid.layers.gelu & doc (#21515) · 2057df7a
      Feiyu Chan 提交于
          Add a python interface for Gelu.
          Add documentation for fluid.layers.gelu.
      2057df7a
    • J
      [MKL-DNN] Batch norm mkl-dnn NHWC support (#21553) · 9ce0e29d
      Jacek Czaja 提交于
      * - BAtch norm mkl-dnn NHWC
      
      test=develop
      
      - compilation fix
      
      test=develop
      
      - UT fix
      
      - cosmetics
      
      test=develop
      
      - Fix to Batch Norm MKL-DNN NHWC UT
      
      test=develop
      
      Conflicts:
      	paddle/fluid/operators/batch_norm_op.h
      
      * - Lint fixes
      
      test=develop
      9ce0e29d