1. 09 12月, 2019 1 次提交
  2. 06 12月, 2019 3 次提交
    • 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
    • F
      add fluid.layers.gelu & doc (#21515) · 2057df7a
      Feiyu Chan 提交于
          Add a python interface for Gelu.
          Add documentation for fluid.layers.gelu.
      2057df7a
    • W
      fix doc typo test=develop (#21566) · 29c38445
      wangchaochaohu 提交于
      29c38445
  3. 05 12月, 2019 4 次提交
    • D
    • H
      Add dygraph linear warm up decay (#21186) · 08483a68
      hong 提交于
      * dygraph mode support linear lr warm up; test=develop
      
      * add unitest for linear warmup; test=develop
      
      * add input type check; test=develop
      
      * fix type check assert error; test=develop
      
      * change type error; test=develop
      08483a68
    • L
    • L
      Split VarBase from Python Variable for Dygraph (#21359) · cdd46d7e
      Leo Chen 提交于
      * test=develop, fix docker with paddle nccl problem
      
      * don't expose numerous Tensor.set(), test=develop
      
      * fix condition, test=develop
      
      * fix float16 bug, test=develop
      
      * feed should be Tensor or np.array, not Variable or number, test=develop
      
      * use forcecast to copy numpy slice to new array, test=develop
      
      * remove float16-uint16 hacking, test=develop
      
      * add variable method to varbase and refactor to_variable to support return varbase
      
      * support kwargs in varbase constructor
      
      * add VarBase constructor to support default python args
      
      * refine varbase initial method
      
      * reset branch
      
      * fix ut for change VarBase error info to PaddleEnforce
      
      * cherry is parameter change before
      
      * overload isinstance to replace too many change of is_variable
      
      * rm useless files
      
      * rm useless code merged by git
      
      * test=develop, fix some ut failed error
      
      * test=develop, fix test_graph_wrapper
      
      * add some tests, test=develop
      
      * refine __getitem__, test=develop
      
      * add tests, test=develop
      
      * fix err_msg, test=develop
      cdd46d7e
  4. 04 12月, 2019 1 次提交
  5. 03 12月, 2019 5 次提交
  6. 02 12月, 2019 4 次提交
  7. 01 12月, 2019 1 次提交
  8. 29 11月, 2019 2 次提交
    • H
      Fix Cond Bug for Nested Control Flow (#21340) · 630be319
      Huihuang Zheng 提交于
      * Commit before merging develop
      
      test=develop
      
      * Backup after working with Huihuang logs
      
      * Commit before deleting Huihuang debug loggings
      
      * Commit before debug
      
      test=develop
      
      * Fix bug commit
      
      test=develop
      
      * Backup of fixing bugs
      
      test=develop
      
      * Clean up code
      
      test=develop
      
      * Fix a bug in sum_op
      
      test=develop
      630be319
    • Z
      Add dscending for argsort (#21400) · b1627455
      zhaoyuchen2018 提交于
      * Add ascending for argsort
      
      * Refine api doc description.
      
      * Refine descending description
      
      * Add int32 logic to speedup when data is small size.
      
      * Remove int32 opt as not support in python
      b1627455
  9. 28 11月, 2019 4 次提交
  10. 27 11月, 2019 1 次提交
  11. 26 11月, 2019 1 次提交
  12. 25 11月, 2019 2 次提交
  13. 22 11月, 2019 1 次提交
  14. 21 11月, 2019 2 次提交
  15. 20 11月, 2019 1 次提交
    • L
      Add control flow api: case (#21114) · b0fc8227
      liym27 提交于
      * add control flow API: case. test=develop
      
      * delete 'raise TypeError' in _error_message() and return a string. test=develop
      
      * polish API document. test=develop
      b0fc8227
  16. 19 11月, 2019 1 次提交
    • Y
      fix data_norm op to avoid impractical normalization result test=develop (#21152) · b5d8ba83
      yaoxuefeng 提交于
      * fix auc drop first commit test=develop
      
      * update datanorm op
      
      * update datanorm with enforce test=develop
      
      * update test=develop
      
      * update format test=develop
      
      * update format
      
      * update format test=develop
      
      * add unit test test=develop
      
      * update unit test test=develop
      
      * update format test=develop
      
      * update format test=develop
      
      * update API description test=develop
      
      * update API description test=develop
      
      * update format test=develop
      
      * fix codes as comments test=develop
      
      * fix description as comments test=develop
      
      * fix description as comments test=develop
      
      * update codes.. test=develop
      b5d8ba83
  17. 18 11月, 2019 2 次提交
    • Z
      modified error message and API doc for channel_last supported Op (#21002) · 9cbe7bcc
      Zhang Ting 提交于
      * modified error message for conv and conv_transpose, test=develop
      
      * modified doc of conv and conv_transpose op, test=develop
      
      * modified the expression for error message, test=develop
      
      * modified error message for group_norm op, test=develop
      
      * modified detail of Attr(data_format) or Attr(data_layout)
      
      * add ValueError in API doc for maxout op, test=develop
      9cbe7bcc
    • L
      Control flow API: switch_case (#21103) · 92475282
      liym27 提交于
      * add API switch_case. test=develop
      
      add Nest
      
      * modify code according to reviews:
      1.Attr(branch_index) support 'uint8' and 'int64' besides 'int32'.
      2.remove useless code.
      test=develop
      
      * replace fluid.layers.data with fluid.data and polish API document. test=develop
      92475282
  18. 15 11月, 2019 1 次提交
  19. 14 11月, 2019 2 次提交
  20. 12 11月, 2019 1 次提交