1. 29 9月, 2020 14 次提交
    • 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
    • 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
    • F
      update mv op docs (#27559) · b7b1ae86
      furnace 提交于
      b7b1ae86
    • A
      Add cuda support for unique op (#27646) · c3a3df64
      AshburnLee 提交于
      * unique op for cuda is added
      
      * add support for cuda
      
      * Add cuda support for unique op.
      
      * Add support for int32_t and int64_t.
      
      * For old version, process by cpu
      
      * Add VisitDataType for thrust
      c3a3df64
    • 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
    • W
      optimize the error meesage for detetion_map_op · 29f49229
      wawltor 提交于
       optimize the error meesage for detetion_map_op
      29f49229
    • W
      Fix round in grid sample op (#27657) · daf5aa9b
      whs 提交于
      daf5aa9b
  2. 28 9月, 2020 26 次提交