1. 15 5月, 2020 1 次提交
    • A
      [cherry-pick][Dy2stat] training with @declarative decorator and save_inference_model (#24557) · a20ce3ee
      Aurelius84 提交于
      * [Dy2Stat] Add test for ptb model. (#24076)
      
      * [Dy2Stat] Add test for ptb model. test=develop
      
      * Simplify code for gast.If in is_control_flow_to_transform. test=develop
      
      * Move IsControlFlowVisitor to file utils. test=develop
      
      * Don't use convert_call for build-in func in CallTransformer. test=develop
      
      * Optimize api is_control_flow_to_transform. test=develop
      
      * Polish the document of IsControlFlowVisitor. test=develop
      
      * Use declarative instead of dygraph_to_static_func. test=develop
      
      * [dy2static] Add print transformer and unify print format (#24068)
      
      * add print transformer & unify print format, test=develop
      
      * remove using of dygraph_to_static_func, test=develop
      
      * remove python stdout capture, test=develop
      
      * fix compatibility problems for PY2, test=develop
      
      * fix detail error, test=develop
      
      * fix type analysis bug, test=develop
      
      * fix print tuple compatible error in PY2, test=develop
      
      * replace get_func to declarative, test=develop
      
      * fix detail bug, test=develop
      
      * fix some detail problems, test=develop
      
      * change visit_call in print transformer, test=develop
      
      * [dy2static] Support for static graph training with @declarative decorator (#24259)
      
      * support to train in static
      
      * support to independent decorator
      
      * remove in_dygraph_mode condition in ProgramTranslator
      
      * fix import param_guard and add train/eval test=develop
      
      * Modify into ShareVarsFromScope and rm __all__ in partial_program test=develop
      
      * [Dy2Stat] Optimize loop cond (#24049)
      
      * Simplify code for gast.If in is_control_flow_to_transform.
      * Move IsControlFlowVisitor to file utils. 
      * Don't use convert_call for build-in func in CallTransformer. 
      * Optimize api is_control_flow_to_transform. 
      * Polish the document of IsControlFlowVisitor.
      
      * revert modification from #24259
      
      * [dy2stat]Support save_inference_model in program_translator (#24353)
      
      * support save_inference_model in program_translator test=develop
      
      * fix compatibility with OrderedDict.values() in python3 test=develop
      
      * synchronized random_seed test=develop
      
      * Polish Error Message test=develop
      
      * Fix bug with `if Tensor` in is_control_flow (#24433)
      
      * fix bug with `if Tensor` in is_control_flow test=develop
      
      * remove continue test=develop
      
      * Revert "[dy2static] Add print transformer and unify print format (#24068)"
      
      This reverts commit 09dd0190.
      
      * Revert "[dy2static] Add print transformer and unify print format (#24068)"
      
      This reverts commit 09dd0190.
      
      * fix sample code in sava_inference_model test=develop
      Co-authored-by: Nliym27 <33742067+liym27@users.noreply.github.com>
      Co-authored-by: NChen Weihang <chenweihang@baidu.com>
      a20ce3ee
  2. 13 5月, 2020 1 次提交
  3. 25 4月, 2020 1 次提交
    • Y
      Init complex number neural network (#24018) (#24126) · 93fd4081
      Yibing Liu 提交于
      * Init complex number neural network, test=release/2.0
      
      * Improve doc writing
      
      * Fix elementwise add & sub
      
      * Fix elementwise mul act
      
      * a) add ut for complex variable; b) remove arg act in elementwise_ops
      93fd4081
  4. 17 4月, 2020 1 次提交
  5. 10 4月, 2020 1 次提交
  6. 09 4月, 2020 1 次提交
  7. 08 4月, 2020 1 次提交
  8. 27 3月, 2020 1 次提交
    • Z
      Expose dygraph.grad api (#23124) · 8bfd62ff
      Zeng Jinle 提交于
      * expose dygraph.grad api, test=develop, test=document_fix
      
      * add more parameter in dygraph.grad API, test=develop
      
      * add only_inputs=True parameter, test=develop
      
      * follow comments, test=develop, test=document_fix
      
      * fix typo, test=develop, test=document_fix
      8bfd62ff
  9. 25 3月, 2020 1 次提交
  10. 20 3月, 2020 1 次提交
    • Z
      Add dygraph double grad implementation (#22939) · a31d7328
      Zeng Jinle 提交于
      * add double grad implementation for dygraph, test=develop
      
      * polish code, add uts, test=develop
      
      * fix place bug, test=develop
      
      * polish codes, add more uts for coverages, test=develop
      
      * add no_grad_set, test=develop
      
      * add star gan ut, test=develop
      
      * follow comments, test=develop
      a31d7328
  11. 03 3月, 2020 1 次提交
    • S
      Add functional dygraph mode api (#22745) · df87e79f
      songyouwei 提交于
      * functional dygraph enable/disable
      test=develop
      
      * use context manager instead
      test=develop
      
      * refine sample code
      test=develop
      
      * rename api & expose to fluid
      test=develop
      
      * fix sample code
      test=develop
      df87e79f
  12. 08 1月, 2020 1 次提交
  13. 27 12月, 2019 2 次提交
    • L
      ba51043f
    • Z
      remove params in Tracer object (in dygraph) (#20815) · dca07583
      zhongpu 提交于
      * remove params in Tracer object, test=develop
      
      * Repair failed optest, test=develop
      
      * remove build_once & name_scope (Conv2D)
      test=develop
      
      * fix unittest
      test=develop
      
      * Conv2DTranspose
      
      * Conv3D & Conv3DTranspose
      test=develop
      
      * Pool2D & BatchNorm
      
      * Embedding
      
      * LayerNorm
      
      * GRUUnit & NCE
      
      * PRelu
      
      * BilinearTensorProduct
      
      * GroupNorm & SpectralNorm
      
      * TreeConv
      test=develop
      
      * fix LayerNorm in transformer unnittest
      test=develop
      
      * disable LayerNorm or BatchNorm in multicard
      test=develop
      
      * refine Layer.create_parameter api
      test=develop
      
      * refine LayerNorm, remove begin_norm_axis param, add normed shape check
      test=develop
      
      * LayerNorm bug fix
      test=develop
      
      * fix optest,test=develop
      
      * fix optest, test=develop
      
      * fix optest for pass parameter_list when constructing an Optimizer class instance, test=develop
      
      * polish code for better code style, test=develop
      
      * fix se_resnext optest, test=develop
      
      * polish code for better code style, test=develop
      Co-authored-by: Nsongyouwei <youwei0314@gmail.com>
      dca07583
  14. 09 12月, 2019 1 次提交
    • L
      Refine VarBase init function (#21587) · 4f81d1bd
      Leo Chen 提交于
      * refine init function, test=develop
      
      * add tests, test=develop
      
      * remove extern, which may cause symbol error in gcc-4.8, test=develop
      4f81d1bd
  15. 05 12月, 2019 1 次提交
    • 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
  16. 27 11月, 2019 1 次提交
    • Y
      Support numpy bridge (enabled by default in dygraph mode) (#20983) · d5ff79e5
      Youwei Song 提交于
      * add numpy bridge
      
      * fix template compile
      
      * add unittest, add default
      test=develop
      
      * fix unittest
      test=develop
      
      * fix unittest
      test=develop
      
      * zero_copy=True for to_variable,
      test=develop
      
      * bug fix
      test=develop
      
      * disable deprecated NumPy API
      test=develop
      
      * use better design of NumpyAllocator
      test=develop
      
      * fix Py_None check
      test=develop
      
      * reset c++ tracer when jump out dygraph guard
      test=develop
      
      * refine PADDLE_ENFORCE_xx format
      test=develop
      
      * bug fix of tracer switch
      test=develop
      
      * update decref
      test=develop
      d5ff79e5
  17. 14 11月, 2019 1 次提交
  18. 05 11月, 2019 1 次提交
  19. 01 11月, 2019 1 次提交
    • L
      Update Tensor.set() to support float16 (#19964) · 9974e407
      Leo Chen 提交于
      * 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
      9974e407
  20. 23 10月, 2019 1 次提交
  21. 12 10月, 2019 1 次提交
    • Y
      fix en docs of Layer and guard (#20512) · 9a09ff14
      Youwei Song 提交于
      * fix en docs of Layer and guard
      test=document_fix, test=develop
      
      * fix en docs of Layer and guard
      test=document_fix, test=develop
      
      * minor fix
      test=document_fix, test=develop
      
      * minor fix
      test=document_fix, test=develop
      
      * fix api.spec
      test=document_fix, test=develop
      
      * fix api.spec
      test=document_fix, test=develop
      
      * fix docs
      test=document_fix, test=develop
      
      * fix docs
      test=document_fix, test=develop
      
      * fix docs
      test=document_fix, test=develop
      
      * fix api.spec
      test=document_fix, test=develop
      
      * fix api.spec
      test=document_fix, test=develop
      
      * add forward doc
      test=document_fix, test=develop
      
      * add "s" for parameters
      test=document_fix, test=develop
      9a09ff14
  22. 11 10月, 2019 1 次提交
  23. 27 9月, 2019 1 次提交
    • J
      Optimze/optimize dygraph api (#19999) · 39ff0f9c
      Jiabin Yang 提交于
      * test=develop, fix docker with paddle nccl problem
      
      * test=develop, Add Variable api and refine dygraph related API
      
      * test=develop, Add Variable api and refine dygraph related API
      
      * test=develop, refine test for new api and error info
      
      * test=develop, refine error info and test_layers
      
      * test=develop, add API.spec
      
      * test=devleop, fix to_string python2 and python3 compat error and refien doc
      
      * test=devleop, add API spec
      
      * test=devleop, update API spec
      
      * test=devleop, update API spec
      
      * test=develop, invoke ci
      
      * test=develop, fix example code
      
      * test=develop, update API spec
      
      * test=develop, add compat test and fix inplace campat dict error
      39ff0f9c
  24. 17 9月, 2019 1 次提交
  25. 11 9月, 2019 1 次提交
    • Y
      fix api-doc error for dygraph and backward (#19721) · 3e5fb636
      Youwei Song 提交于
      * update dygraph api-doc and backward api-doc, test=develop
      
      * update dygraph api-doc and backward api-doc, update api.spec, test=develop
      
      * update dygraph api-doc and backward api-doc, update api.spec, test=develop
      
      * update API.spec, test=develop
      3e5fb636
  26. 05 9月, 2019 1 次提交
    • J
      Refactor dygraph (#19107) · e9233d1c
      Jiabin Yang 提交于
      * refactor dygraph,test=develop
      
      * fix failed unittest,test=develop
      
      * polish code,test=develop
      
      * check windows ci error,test=develop
      try to fix windows ci error by np.allclose,test=develop
      
      * polish vlog and profiler, test=develop
      
      * try to fix preceding ops order,test=develop
      
      * test transformer in windows ci, test=develop
      
      * use python c-api to speed up tracer.trace,test=develop
      
      * test=develop, fix docker with paddle nccl problem
      
      * test=develop, add ut for debug string and gradient_accumulator
      
      * test=develop, add tests for layer/gradient_accumulator/prepared_op
      
      * test=develop, fix complie error for test_prepared_op
      
      * test=develop, add more ut for dygraph
      
      * test=develop, create API.spec for dygraph api change
      
      * test=develop, refoctor name to make it easier to understand
      
      * test=develop, refoctor name to make it easier to understand
      
      * test=develop, fix multi-gpu failed problem , add Tracer tests, change PADDLEENFORCE to PADDLEENFORCE_EQ
      
      * test=develop, fix ut failed on parallel se-resnext
      
      * test=develop, change one more PADDLE_ENFORCE
      e9233d1c
  27. 10 7月, 2019 1 次提交
  28. 05 7月, 2019 1 次提交
    • J
      Hide no support (#18515) · 7586cdd5
      Jiabin Yang 提交于
      * test=develop, fix docker with paddle nccl problem
      
      * test=develop, hide no_support api and add ut for it
      7586cdd5
  29. 18 6月, 2019 1 次提交
  30. 10 6月, 2019 1 次提交
  31. 06 6月, 2019 2 次提交
    • J
      test=develop, add dygraph_not_support and refine ocr (#17868) · 4cb7d32c
      Jiabin Yang 提交于
      * test=develop, add dygraph_not_support and refine ocr
      
      * test=develop, shrink name of dygraph_not_support
      4cb7d32c
    • J
      Add optimizer save and load (#16986) · 022dfed4
      Jiabin Yang 提交于
      * save optimizer related vars in dygraph
      
      * test=develop, add optimizer save and load
      
      * test=develop, add optimizer save and load
      
      * test=develop, merge code and add multi-optimizer save and load
      
      * test=develop, fix test_imperative_checkpoint
      
      * test=develop, fix include error
      
      * test=develop, fix include error
      
      * test=develop, renew api spec
      
      * test=develop, refine code
      
      * test=develop, set default value for checkpoint
      
      * test=develop, fix ci error
      
      * test=develop, change API.spec and make api more readable
      
      * test=develop, refine version and time stamp
      
      * test=develop, add example code and refine code
      
      * test=develop, refine doc
      
      * test=develop, change version
      022dfed4
  32. 03 6月, 2019 1 次提交
  33. 28 3月, 2019 1 次提交
  34. 26 3月, 2019 2 次提交
    • J
      add layer norm to Layers, add transformer test in imperative mode (#16092) · f735102e
      Jiabin Yang 提交于
      * add layer norm to Layers, add transformer prepare encoding
      
      * little change
      
      * finish encoder part
      
      * add decoder part
      
      * finish model part
      
      * add test case and part of data feed
      
      * add transformer test
      
      * add to_parameter, add remove in set_attr
      
      * test=develop, fix pos encoding bug, create_parameter with stantard name
      
      * test=develop, rm dropout test in imperative
      
      * test=develop, fix cpu error
      
      * test=develop, fix minize bug
      
      * test=develop, fix one hot not stop gradient
      
      * test=develop, fix one hot not stop gradient
      
      * test=develop, refine parameter name
      
      * test=develop, fix transformer test in imperative mode
      
      * test=develop, fix transformer test in imperative mode
      
      * test=develop, fix boost and mkl download error
      
      * test=develop, fix boost and mkl download error
      
      * test=develop, fix ci and refine code
      
      * test=develop, fix ci and refine code
      f735102e
    • X
      update DeepCF model · 1f89249a
      Xin Pan 提交于
      test=develop
      1f89249a
  35. 04 3月, 2019 1 次提交
  36. 25 2月, 2019 1 次提交
  37. 12 2月, 2019 1 次提交
    • S
      rename · 7e399b06
      sneaxiy 提交于
      test=develop
      7e399b06