1. 04 12月, 2020 3 次提交
    • C
      Support type promote for basic math ops (quantum required) (#29265) (#29354) · 0e7539e7
      Chen Weihang 提交于
      * basic impl of type promote
      
      * add comment & another testcase
      
      * fix complex bugs & support python op promote type
      
      * fix failed unittests & polish code
      
      * add unittest for coverage
      
      * change to only promote complex type
      
      * polish code details
      
      * polish several comments
      0e7539e7
    • L
      [Cheery-Pick 2.0.0-rc1][Dy2stat] Add a decorator paddle.jit.not_to_static to... · 8e0d688a
      liym27 提交于
      [Cheery-Pick 2.0.0-rc1][Dy2stat] Add a decorator paddle.jit.not_to_static to support that not to convert a function in Dynamic-to-Static. (#29253) (#29340)
      
      Usage scenarios:A function could have run successfully in static mode,  you can use it to decorate a function in the following cases:
        1. An unknown error occurs in the dynamic-to-static conversion process of the function;
        2. In the internal implementation of the function, it has two branches: dynamic branch and static branch;
        3. Users don't want to convert the function in the process of dynamic to static.
      8e0d688a
    • L
      use has_grad instead of train_mode (#29309) (#29346) · 0a7c7c1c
      Leo Chen 提交于
      * use has_grad instead of train_mode
      
      * add vlog for debug
      
      * fix ut
      
      * fix ut
      0a7c7c1c
  2. 03 12月, 2020 2 次提交
  3. 02 12月, 2020 1 次提交
  4. 01 12月, 2020 2 次提交
  5. 30 11月, 2020 3 次提交
    • Y
      fix docs (#29097) · a069e1ca
      yaoxuefeng 提交于
      a069e1ca
    • 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
    • W
      save model after jit.load (#28748) · 1476e1f9
      WeiXin 提交于
      * Changed a variable name error
      
      * Add comments
      
      * Move member functions of TranslatedLayer out of function
      
      * edit code according to review
      
      * Edit input argument of '_run_static_graph'
      
      * reset due to Segmentation fault
      
      * rename variables when stitching graph
      
      * modify code according CI
      
      * Add comments to '__i_m_p_l__'
      
      * remove blanks befor 'Get...'
      
      * edit code according to review
      
      * Add a comment to '_execution_method_creator'
      
      * Edit a comment to '_execution_method_creator'
      1476e1f9
  6. 28 11月, 2020 2 次提交
  7. 27 11月, 2020 3 次提交
  8. 26 11月, 2020 2 次提交
  9. 25 11月, 2020 2 次提交
  10. 24 11月, 2020 7 次提交
  11. 23 11月, 2020 1 次提交
  12. 20 11月, 2020 1 次提交
  13. 19 11月, 2020 5 次提交
  14. 18 11月, 2020 1 次提交
  15. 17 11月, 2020 1 次提交
  16. 12 11月, 2020 1 次提交
  17. 11 11月, 2020 2 次提交
  18. 10 11月, 2020 1 次提交