1. 12 4月, 2020 2 次提交
  2. 11 4月, 2020 1 次提交
  3. 10 4月, 2020 2 次提交
  4. 09 4月, 2020 3 次提交
  5. 08 4月, 2020 1 次提交
  6. 03 4月, 2020 2 次提交
  7. 02 4月, 2020 1 次提交
  8. 25 3月, 2020 1 次提交
  9. 19 3月, 2020 1 次提交
  10. 18 3月, 2020 1 次提交
  11. 26 2月, 2020 1 次提交
    • S
      support control flow cond in dygraph mode (#22693) · b813c948
      songyouwei 提交于
      * dygraph support cond op
      test=develop
      
      * unittest coverage
      test=develop
      
      * fix coverage
      test=develop
      
      * fix for coverage
      test=develop
      
      * refine TypeError msg
      test=develop
      
      * remove restrict
      test=develop
      b813c948
  12. 25 2月, 2020 2 次提交
  13. 23 2月, 2020 1 次提交
  14. 17 2月, 2020 1 次提交
  15. 14 2月, 2020 1 次提交
  16. 11 2月, 2020 1 次提交
  17. 06 2月, 2020 1 次提交
  18. 08 1月, 2020 1 次提交
  19. 07 1月, 2020 1 次提交
  20. 04 1月, 2020 1 次提交
    • L
      control flow: support optimizer called (#21851) · 7d8d4599
      liym27 提交于
      * append optimize op in the grad block of current block if current block is in control flow. test=develop
      
      * add conditional grad op when optimizer used in control flow. test=develop
      
      * add comment and modify typo. test=develop
      
      * fix append_backward to support control flow. test=develop
      
      * add test. test=develop
      
      * fix copy_var_to_parent_block and conditional_block_grad. test=develop
      
      * fix bug: revert to append conditional_block_grad vars to sub grad block. test=develop
      
      * fix bug: revert to assign var to parent block even if var already is in parent block
      
      * fix bug: consider outputs is empty. test=develop
      
      * move _rename_grad_ out. test=develop
      
      * modify code according to reviews from Huihuang. test=develop
      
      * modify code according to reviews from Jinle. test=develop
      7d8d4599
  21. 24 12月, 2019 1 次提交
  22. 09 12月, 2019 2 次提交
  23. 06 12月, 2019 1 次提交
    • 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
  24. 02 12月, 2019 2 次提交
  25. 29 11月, 2019 1 次提交
    • 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
  26. 25 11月, 2019 1 次提交
  27. 21 11月, 2019 1 次提交
  28. 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
  29. 18 11月, 2019 1 次提交
    • 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
  30. 11 11月, 2019 1 次提交
  31. 07 11月, 2019 1 次提交
  32. 12 10月, 2019 1 次提交
    • Z
      Fix api doc example bug and polish square doc (#20491) · 8fb569e5
      zhaoyuchen2018 提交于
      * Refine create_array api en doc
      
      test=develop
      test=document_fix
      
      
      * Fix api doc example bug and polish square
      
      test=develop
      test=document_fix
      
      
      * Refine comment
      
      test=develop
      test=document_fix
      
      
      * refine API.spec
      
      test=develop
      test=document_fix
      8fb569e5