1. 30 9月, 2020 14 次提交
  2. 29 9月, 2020 20 次提交
    • 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
    • C
      add rename var in block (#27705) · 53803202
      Chen Weihang 提交于
      53803202
    • 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
    • 1
      test=develop, optimize geo communicator (#26857) · cc780b19
      123malin 提交于
      * test=develop, optimize geo communicator 
      cc780b19
    • 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
    • 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
    • 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
    • S
      add paddle.enable_static() && random.seed(xx) to test_activation_op (#27585) · 6363a336
      Shang Zhizhou 提交于
      * add paddle.enable_static() to some testcase
      
      * add seed to random in test_activation_op
      
      * update a randomseed
      
      * update a randomseed
      6363a336
    • Z
      fix in_dynamic_mode of paddle,test=document_fix (#27671) · 6871e57b
      Zhou Wei 提交于
      6871e57b
    • H
      [Dy2stat] Fix lstm bug (#27631) · abb32bbc
      Huihuang Zheng 提交于
      This PR fixed two bugs when converting LSTM in dy2stat:
      
      is_unsupported has a condition can trigger Python syntax error
      LSTM API's implementation in _rnn_static_graph doesn't include parameter initialization, which can cause dy2stat error.
      abb32bbc
    • L
      Initialize gloo for low level collective apis (#27672) · bbc2add7
      lilong12 提交于
      * add gloo initializer, test=develop
      bbc2add7
    • H
      [Dy2stat] Fix test_yolov3 to Run Correctly on Win/Mac (#27666) · b7107c65
      Huihuang Zheng 提交于
      We decreased the batch size on CPU so that it can run correctly on Win/Mac machine, this may cause the delta to be larger. So I set larger delta value.
      b7107c65
    • D
      [API 2.0] Fix api 'is_empty' (#27593) · 6ad72106
      danleifeng 提交于
      * fix is_empty api and code example; test=develop
      6ad72106
    • L
      Add transformer generate square subsequent mask api (#27651) · ee13a2ab
      LiuChiachi 提交于
      * add transformer generate square subsequent mask api
      
      * add dtype for input, update doc, use -np.inf
      
      * add dtype for input, update doc, use -np.inf
      ee13a2ab
  3. 28 9月, 2020 6 次提交