1. 09 12月, 2020 1 次提交
  2. 02 12月, 2020 1 次提交
    • H
      [Dy2stat] Fix PaddleGan Deoldify Model Dy2stat Problems (#29226) · aec05d81
      Huihuang Zheng 提交于
      This PR fixes several problems in dy2stat for Deoldify model in PaddleGan.
      
      In model, software engineer wrote if x.shape == y.shape, the Tenser shape is a tuple in dygraph so the == returns True/False, but in static graph the == becomes element-wise comparison, which is a different behavior. In this PR we reduce the element-wise comparison result.
      
      If software engineer write computations which uses parameters in hooks, the static graph can loss the parameter variable because we put param_guard at forward of a Layer. In this PR we made param_guard cover pre-hook and post-hook.
      
      In PaddleGan, software engineer calculated some parameter values in __init__ by running some dygraph code. Those code also run during dy2stat. So some variables may be assign as a VarBase (Tensor) first and then Variable, which raised an error. We fixed the bug in this PR by handling the case.
      
      TODO: We just added testcase for the 1. shape comparison. Should add test case for 2. and 3. But since we are chasing 2.0RC, I will do it in the near future PR
      aec05d81
  3. 24 11月, 2020 1 次提交
    • W
      fix eng doc for some api (#28477) · 887a3511
      wanghuancoder 提交于
      * fix eng doc, test=develop
      
      * add import deprecated for layers, test=develop
      
      * add block line for doc generate, test=develop
      
      * remove todo for create_variable, test=develop
      
      * add blank line for doc generate, test=develop
      
      * add blank line for doc generate, test=develop
      887a3511
  4. 02 11月, 2020 1 次提交
  5. 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
  6. 08 10月, 2020 1 次提交
    • W
      modify doc for paddle.nn.Layer (#27624) · 7698e199
      wanghuancoder 提交于
      * modify doc for Layer, test=develop
      
      * modify doc for Layer2, test=develop
      
      * set dtype default value to float32, test=develop
      
      * add example code for paddle.nn.Layer, test=develop
      
      * set create_parameter and create_variable dtype default value to None, test=develop
      
      * modify some example code, tet=develop
      
      * refine, test=develop
      
      * del no ues code, test=develop
      
      * modify doc, example code, args, test=develop
      
      * modify doc, test=develop
      7698e199
  7. 23 9月, 2020 1 次提交
    • C
      Add new paddle.save/load APIs (#27331) · bb84f0e6
      Chen Weihang 提交于
      * init commit of new save/load
      
      * fix failed unittests
      
      * fix save_load_v2 unittest failed
      
      * fix failed unittest & polish doc
      
      * add tests for coverage
      
      * add more tests & move static apis
      
      * fix example code error
      
      * polish emample code
      
      * fix detail example code problem
      bb84f0e6
  8. 22 9月, 2020 1 次提交
  9. 03 9月, 2020 1 次提交
    • C
      Update set_dict method name & add aliases (#26700) · 9cb57f94
      Chen Weihang 提交于
      * update set_dict method name & add aliases
      
      * fix var name error
      
      * fix alias formats
      
      * use set_state_dict in unittest
      
      * add decorator solve compatible problem
      
      * polish decorator
      
      * replace layer set_state_dict by patched method
      
      * remove import monkey path layer
      
      * fix import function error
      
      * add unittest for coverage
      9cb57f94
  10. 20 8月, 2020 1 次提交
  11. 18 8月, 2020 1 次提交
  12. 16 8月, 2020 1 次提交
  13. 11 8月, 2020 1 次提交
    • P
      Paddle-2.0 API directory migration (#25898) · 2efcb481
      pangyoki 提交于
      * Directory migration, test=develop
      
      * Change imperative from paddle init to paddle framework, test=develop
      
      * Fixed jit bug, test=develop
      
      * default static mode, test=develop
      
      * fixed format and create parameter belongs to framework, test=develop
      
      * Fixed import package, test=develop
      
      * fix __init__ format, test=develop
      
      * fixed alias problem
      
      * fixed paddle.enable_imperative problems, test=develop
      
      * Add unittest
      
      * delete install_check comment
      
      * Fixed unittest timeout
      
      * fixed unittest error
      
      * move Program default_xx_program to static package
      
      * optimize unittest method
      
      * fixed framework __init__ format
      
      * fixed jit path
      
      * delete alias
      
      * move jit to paddle
      
      * Fixed unittest format
      
      * fixed paddle.default_main_program
      
      * Fixed save load API in paddle __init__.py
      
      * fixed ci paddle.imperative.to_variable
      2efcb481
  14. 05 8月, 2020 1 次提交
  15. 24 7月, 2020 1 次提交
    • Q
      Refine Model of high level API (#25559) · b5f8784c
      qingqing01 提交于
      * Refine Model
      
      1. Take the network (instance of Layer) as the input of Model.
      2. Refine set_dict/load_dict of Layer.
      3. Refine Input interface, so update code sample about Input
      b5f8784c
  16. 03 7月, 2020 1 次提交
  17. 29 6月, 2020 1 次提交
    • A
      [Dy2stat]Support buffers and register_buffer in Layer (#24888) · 02adf68d
      Aurelius84 提交于
      * support to save varBase created in __init__ test=develop
      
      * polish code test=develop
      
      * refine to_static_var test=develop
      
      * refine warning test=develop
      
      * add unitteset for to_static_var test=develop
      
      * fix logger test=develop
      
      * polish buffers en doc test=develop
      
      * fix param_guard test=develop
      
      * refine en doc test=develop
      02adf68d
  18. 14 5月, 2020 1 次提交
  19. 08 5月, 2020 1 次提交
  20. 09 4月, 2020 1 次提交
    • S
      support Layer level train/eval mode (#22463) · b11340a4
      songyouwei 提交于
      * Layer add training attr, add Dropout Layer
      
      * add unit test for Dropout
      test=develop
      
      * minor fix
      test=develop
      
      * add missing args
      test=develop
      
      * support global flag in dropout, add docs
      test=develop
      
      * minor fix
      test=develop
      
      * minor fix
      test=develop
      
      * refine code comments
      test=develop
      
      * refine Dropout
      test=develop
      
      * fix ut
      test=develop
      
      * arg expansion
      test=develop
      
      * sample code update
      test=develop
      
      * prop -> p
      test=develop
      
      * fix ut
      test=develop
      
      * minor check fix
      test=develop
      b11340a4
  21. 07 4月, 2020 1 次提交
  22. 03 4月, 2020 1 次提交
    • Z
      support forward hook for dygraph (#22443) · 166a1ae9
      zhongpu 提交于
      * support forward hook for dygraph, test=develop
      
      * add optest for forward_hook in dygraph, test=develop
      
      * add optest, test=develop
      
      * polish code, test=develop
      
      * add sample code, test=develop
      
      * rename forwrd_hook to forward_post_hook, test=develop
      
      * fix the api description, test=develop
      
      * fix api description, test=develop
      166a1ae9
  23. 17 2月, 2020 1 次提交
  24. 17 1月, 2020 1 次提交
  25. 09 1月, 2020 2 次提交
    • S
      named_sublayers and named_parameters (#21868) · 83037e55
      songyouwei 提交于
      * use snake_cased Layer name
      
      * add named_parameters and named_sublayers api
      
      * add include_sublayers param, add unittest
      test=develop
      
      * fix named unittests
      test=develop
      
      * fix unittest
      test=develop
      
      * add api docs
      test=develop
      
      * arg fix
      test=develop
      
      * reserve rnn_impl name_scope for static graph
      test=develop
      
      * fix load static param
      test=develop
      
      * fix load static param
      test=develop
      83037e55
    • Z
      add clear_gradients for Optimizer and add clear_gradients api description (#21948) · 7d10edc5
      zhongpu 提交于
      * add clear_gradients for Optimizer, add api description, test=develop
      
      * fix optest for optimizer's clear_gradient interface, test=develop
      
      * add sample code, test=develop
      
      * polish sample code, test=develop
      7d10edc5
  26. 07 1月, 2020 1 次提交
    • H
      Support dygraph structuerd name (#21930) · 2f49cf70
      hong 提交于
      * support dygraph structured name; test=develop
      
      * add load static param unitest and fix save load; test=develop
      
      * fix varBase import error; test=develop
      
      * fix unitest error; test=develop
      
      * add comment for parameter; test=develop
      
      * fix uni test error; test=develop
      
      * change parallel se-resnet; test=develop
      
      * fix dygraph se resnext parallel test; test=develop
      
      * remove useless code; test=develop
      
      * remove useless code; test=develop
      2f49cf70
  27. 27 12月, 2019 1 次提交
    • 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
  28. 24 12月, 2019 1 次提交
  29. 17 12月, 2019 1 次提交
    • Y
      remove build_once & name_scope (#21131) · f6144d84
      Youwei Song 提交于
      * 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
      f6144d84
  30. 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
  31. 23 10月, 2019 1 次提交
  32. 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
  33. 10 10月, 2019 1 次提交
    • H
      New save load interface (#20148) · fa43e80e
      hong 提交于
      * add new save load interface; test=develop
      
      * add new save interface; test=develop
      
      * add save load interface ;
      
      * fix save load error;
      
      * fix dygraph set dict bug;
      
      * add save load unit test; test=develop
      
      * fix test_imperative_optimizer bug; test=develop
      
      * fix unitest optimizer bug; test=develop
      
      * fix code coverage; test=develop
      
      * fix converage; test=develop
      
      * add document for apis; test=develop
      
      * fix unitest error; test=develop
      
      * fix save load unit test error; test=develop
      
      * fix error message; test=develop
      
      * change set_parameter set_optimizer to save_dygraph; test=develop
      
      * add load_graph check; test=develop
      
      * fix api spec; test=develop
      fa43e80e
  34. 28 9月, 2019 1 次提交
    • Y
      Dygraph Layer kwargs & param getter setter (#19901) · 54e07994
      Youwei Song 提交于
      * opt FC
      
      * opt rest of dygraph.nn
      
      * new param shape check and unittest
      
      * add kwargs for Layer
      
      * add new set_value api
      
      * use property decorator
      
      * update API.spec, test=develop
      
      * use UserList, separate gettersetters, test=develop
      
      * update test_custom_layer_with_kwargs, test=develop
      
      * fix UserList compatibility, test=develop
      
      * fix UserList compatibility, test=develop
      
      * keep FC._w, test=develop
      
      * add unittests, Conv3D bug fix, test=develop
      
      * clean code, test=develop
      
      * fix dygraph guard in unittest, test=develop
      
      * add property setters, remove unused param in tracer, test=develop
      
      * tracer none check, test=develop
      
      * merge, test=develop
      
      * refine, test=develop
      
      * bug fix in  prelu and conv3d_transpose, test=develop
      
      * rm __set__, test=develop
      
      * set tensor value instead of assign op
      
      * fix property setter call, test=develop
      
      * fix api.spec, test=develop
      
      * fix doc sample, test=develop
      54e07994
  35. 26 8月, 2019 1 次提交
  36. 06 6月, 2019 1 次提交
  37. 03 6月, 2019 1 次提交
  38. 29 5月, 2019 2 次提交