1. 30 9月, 2020 21 次提交
  2. 29 9月, 2020 19 次提交
    • P
      add multinomial op (#27219) · 7cd2c13f
      pangyoki 提交于
      * add multinomial cpu kernel
      
      * fix C++ notype error
      
      * fix windows ci array len error
      
      * let array len be const
      
      * change array to vector
      
      * add cuda kernrl with num_distribution is 1, and not support replacement=False
      
      * add multinomial python api
      
      * support num_distribution different multinomial distributions
      
      * add multinomial python api unittest
      
      * change output dtype to int64
      
      * fix coverage prob
      
      * optimize format
      
      * fix dtype of output error, should be int64_t
      7cd2c13f
    • I
      add pip new requirements to windows (#27697) · 7c69e361
      iducn 提交于
      * add pip new requirements to windows
      
      * Increase the conditions that restrict system installation
      7c69e361
    • C
      add rename var in block (#27705) · 53803202
      Chen Weihang 提交于
      53803202
    • Y
      719309a8
    • Y
      fix docs (#27637) · cefb49ab
      yaoxuefeng 提交于
      cefb49ab
    • P
      fix the precision problem of test_distribution (#27524) · 90eb5541
      pangyoki 提交于
      * increase tolerance
      
      * increase the difference between low and high
      
      * change tolerance of Normal log_prob method
      
      * change probs tolerance to 1e-4
      
      * change tolerance of Normal kl method
      90eb5541
    • C
      fix batch_norm doublegrad, test=develop (#27703) · 29d5937a
      ceci3 提交于
      29d5937a
    • W
      42d17538
    • L
      fix reg (#27647) · 8da2b16d
      littletomatodonkey 提交于
      * fix reg
      
      * fix code example and doc
      
      * remove disable_static
      
      * fix doc
      
      * fix l2decay
      8da2b16d
    • 1
      test=develop, optimize geo communicator (#26857) · cc780b19
      123malin 提交于
      * test=develop, optimize geo communicator 
      cc780b19
    • L
      5132f512
    • P
    • C
      Remove DataParallel.scale_loss & apply_collective_grads (#27603) · dec53a9c
      Chen Weihang 提交于
      * remove data parallel scale loss & apply collective_grads
      
      * move apply in minimize
      
      * fix failed unittests
      dec53a9c
    • Y
      7b46fb0f
    • Y
      6d9ae660
    • C
      Polish api Program/CompiledProgram/ParallelEnv doc & code example (#27656) · 199da968
      Chen Weihang 提交于
      * polish Program api doc & example
      
      * polish CompiledProgram api doc & example
      
      * polish ParallelEnv api doc & examples
      
      * polish details, test=document_fix
      
      * polish program doc details, test=document_fix
      
      * polish details, test=document_fix
      
      * fix note format error, test=document_fix
      
      * add lost example, test=document_fix
      
      * fix lost example, test=document_fix
      199da968
    • C
      Polish api BuildStrategy/ExecutionStrategy doc & code example (#27662) · b14ecb86
      Chen Weihang 提交于
      * polish BuildStrategy api doc & example
      
      * polish ExecutionStrategy api doc & example
      
      * polish details
      b14ecb86
    • H
      [Dy2stat] Refine Dy2stat APIs to 2.0rc (#27430) · cc2fc938
      Huihuang Zheng 提交于
      Refine Dy2stat APIs to 2.0rc
      
      After discussion, we accepted 3 key points from reviewers:
      
      1. In 2.0rc we changed dygraph_to_static folder to dy2static
      2. Keep the three files: convert_call_func.py, convert_operators.py, variable_trans_func.py
      3. Remove convert_operators path when users import convert_xxx. 
      
      After this PR, users can import convert_xxx APIs by:
      
      `import paddle.jit.dy2static.convert_xxx`
      
      The file structure will be:
      
      ```
      jit
          dy2static
                convert_operators.py
                convert_func_call.py
                variable_trans_func.py
      ```
      
      Detail changed API in files:
      
      In python/paddle/jit/dygraph_to_static/convert_call_func.py:
      from ...fluid.dygraph.dygraph_to_static.convert_call_func import convert_call  #DEFINE_ALIAS
      
      In python/paddle/jit/dygraph_to_static/convert_operators.py:
      from ...fluid.dygraph.dygraph_to_static.convert_operators import cast_bool_if_necessary  #DEFINE_ALIAS
      from ...fluid.dygraph.dygraph_to_static.convert_operators import convert_assert  #DEFINE_ALIAS
      from ...fluid.dygraph.dygraph_to_static.convert_operators import convert_ifelse  #DEFINE_ALIAS
      from ...fluid.dygraph.dygraph_to_static.convert_operators import convert_len  #DEFINE_ALIAS
      from ...fluid.dygraph.dygraph_to_static.convert_operators import convert_logical_and  #DEFINE_ALIAS
      from ...fluid.dygraph.dygraph_to_static.convert_operators import convert_logical_not  #DEFINE_ALIAS
      from ...fluid.dygraph.dygraph_to_static.convert_operators import convert_logical_or  #DEFINE_ALIAS
      from ...fluid.dygraph.dygraph_to_static.convert_operators import convert_print  #DEFINE_ALIAS
      from ...fluid.dygraph.dygraph_to_static.convert_operators import convert_var_dtype  #DEFINE_ALIAS
      from ...fluid.dygraph.dygraph_to_static.convert_operators import convert_var_shape  #DEFINE_ALIAS
      from ...fluid.dygraph.dygraph_to_static.convert_operators import convert_while_loop  #DEFINE_ALIAS
      
      In python/paddle/jit/dygraph_to_static/variable_trans_func.py:
      from ...fluid.dygraph.dygraph_to_static.variable_trans_func import create_fill_constant_node  #DEFINE_ALIAS
      from ...fluid.dygraph.dygraph_to_static.variable_trans_func import create_static_variable_gast_node  #DEFINE_ALIAS
      from ...fluid.dygraph.dygraph_to_static.variable_trans_func import data_layer_not_check  #DEFINE_ALIAS
      from ...fluid.dygraph.dygraph_to_static.variable_trans_func import to_static_variable  #DEFINE_ALIAS
      from ...fluid.dygraph.dygraph_to_static.variable_trans_func import to_static_variable_gast_node  #DEFINE_ALIAS
      cc2fc938
    • M
      reduce epoch (#27661) · 3baf561a
      MRXLT 提交于
      3baf561a