1. 30 11月, 2020 1 次提交
    • L
      Check whether there is any inplace operation affecting gradient calculation. (#27901) · 865a4598
      liym27 提交于
      * Add a class TensorInplaceVersion to count the inplace version and put it in framework::Tensor instead of Allocation or Variable.
      
      * Add a new attribute `_inplace_version` for VarBase.
      
      * Raise exception if an inplace operation can result in incorrect gradient computation.
      
      * Add a new interface _bump_inplace_version() for VarBase to bump the version whenever the Tensor is modified through an inplace operation.
      
      * For api assign, call _bump_inplace_version() when it's an inplace operation inn dynamic mode.
      
      * Use original var_wrapper if the inplace_version is not changed.
      
      * Replace SnapshotVarWrapperList with SnapshotVarWrapper to optimize performane.
      865a4598
  2. 28 11月, 2020 1 次提交
  3. 26 11月, 2020 1 次提交
  4. 24 11月, 2020 1 次提交
    • L
      Upgrade string literals to raw string (#28989) · 3815d7aa
      Leo Chen 提交于
      * upgrade comment string to raw string
      
      * fix string in
      
      * fix string with ' '
      
      * revert update on comments
      
      * upgrade only necessary
      
      * fix sample code checker
      
      * fix comments with '''
      3815d7aa
  5. 14 10月, 2020 2 次提交
    • C
      Remove and reorganize the alias of APIs (#27717) · d05058d2
      chentianyu03 提交于
      * modify cond while_loop to paddle.static.nn.cond
      
      * modify crop_tensor to paddle.crop
      
      * modify Variable to paddle.static.Variable
      
      * remove nn.beam_search, nn.beam_search_decode, nn.gather_tree
      
      * remove bpr_loss, center_loss, rank_loss, smooth_l1, teacher_student_sigmoid_loss, edit_distance, sampled_softmax_with_cross_entropy in nn.functional
      
      * remove apis in nn.functional.learn_rate.py
      
      * remove pool2d, pool3d, adaptive_pool2d, adaptive_pool3d in nn.functional
      
      * remove apis in nn.functional.vision
      
      * remove erf, soft_relu in nn.functional.activation
      
      * remove apis in nn.functional.extension
      
      * remove nn.functional.rnn
      
      * remove hash from nn.functional.lod
      
      * remove row_conv from nn.functional.extension
      
      * remove one_hot, pad2d, pad_constant_like from nn.functional.common
      
      * remove nn.gather_tree, nn.BilinearTensorProduct, nn.Pool2D, nn.Pad2D
      
      * remove apis from optimizer.__init
      
      * remove tensor.creation.fill_constant
      
      * remove elementwise_mul in nn.functional.common and  modify to paddle.multiply
      
      * remove  tensor.stat.reduce_mean
      
      * remove reduce_all, reduce_any in tensor.logic
      
      * remove apis in tensor.math
      
      * remove apis in tensor.__init__
      
      * remove has_inf, has_nan in tensor.search
      
      * remove apis in framework.__init__
      
      * remove apis in paddle.__init__
      
      * remove apis in nn.functional.__init__
      
      * modify removed alias apis to raw api in doc and unittests
      
      * fix remove grid_sample bug
      
      * modify removed alias apis to raw api in doc and unittests
      
      * modify removed alias apis to raw api in doc and unittests
      
      * modify removed alias apis to raw api in doc and unittests
      
      * modify removed alias apis to raw api in doc and unittests
      
      * modify removed alias apis to raw api in doc and unittests
      
      * modify removed alias apis to raw api in doc and unittests
      
      * delete alias api relastions in doc
      
      * reserve paddle.compat, paddle.sysconfig
      
      * remove unittest for paddle.reduce_all, paddle.reduce_any
      
      * modify removed alias apis to raw api in doc and unittests
      
      * recover paddle.save and paddle.load
      
      * resolve conflicts
      
      * fix sample code missing paddle.enable_static() bug
      
      * fix sample code missing paddle.enable_static() bug
      
      * fix to_string sample code error
      d05058d2
    • L
      [API 2.0: doc] fix doc of linspace cast assign addcmul (#27897) · 72efd830
      liuyuhui 提交于
      * update assign/cast/linspace/addcmul op doc for 2.0 api,test=document_fix
      
      * fix bug about cast doc for 2.0 api,test=document_fix
      72efd830
  6. 13 10月, 2020 1 次提交
  7. 30 9月, 2020 1 次提交
  8. 23 9月, 2020 1 次提交
  9. 22 9月, 2020 1 次提交
  10. 21 9月, 2020 1 次提交
  11. 08 9月, 2020 1 次提交
  12. 06 9月, 2020 1 次提交
  13. 05 9月, 2020 1 次提交
  14. 04 9月, 2020 2 次提交
  15. 03 9月, 2020 1 次提交
  16. 22 8月, 2020 2 次提交
  17. 21 8月, 2020 1 次提交
  18. 20 8月, 2020 1 次提交
  19. 14 8月, 2020 1 次提交
  20. 07 8月, 2020 1 次提交
  21. 04 8月, 2020 1 次提交
  22. 31 7月, 2020 1 次提交
  23. 30 7月, 2020 1 次提交
  24. 29 7月, 2020 1 次提交
  25. 27 7月, 2020 1 次提交
  26. 21 7月, 2020 2 次提交
  27. 17 7月, 2020 1 次提交
  28. 14 7月, 2020 1 次提交
  29. 12 7月, 2020 1 次提交
  30. 10 7月, 2020 1 次提交
  31. 07 7月, 2020 1 次提交
  32. 08 6月, 2020 1 次提交
    • A
      Support LoDTensorArray in reverse_op (#24797) · 6be0ee15
      Aurelius84 提交于
      * Support LoDTensorArray in reverse_op test=develop
      
      * polish en doc and unittest code test=develop
      
      * refine sample code test=develop
      
      * add example of LoDTensorArray test=develop
      
      * fix typo test=develop
      6be0ee15
  33. 04 6月, 2020 1 次提交
  34. 14 5月, 2020 1 次提交
  35. 13 5月, 2020 1 次提交
  36. 26 4月, 2020 1 次提交