1. 19 5月, 2021 1 次提交
  2. 05 6月, 2020 1 次提交
    • L
      [Dy2Static] Add convert_ifelse to run the transformed code dynamically (#24866) · a9dca580
      liym27 提交于
      * cast var in convert_logical_XX. 
      
      * Add convert_ifelse function in convert_operators.py  
      
      * Add logical_transformer. Remove LogicalTransformer from loop_transformer.py 
      
      * Revert modified tests in PR24799(convert_while_stmt). 
      
      * Comment and modify code that doesn't support `return` statement. 
      
      * Remove unnecessary class: MergeAssignTransformer, NodeTestTransformer and IfConditionVisitor in ifelse_transformer. 
      a9dca580
  3. 03 6月, 2020 1 次提交
    • L
      [Dy2Static]Convert while stmt and convert logical_XX (#24799) · 001c9fcc
      liym27 提交于
      * Support convert_while_loop. 
      
      * Comment code that not supported 'if' in test_break_continue. 
      
      * Convert int into tensor to support 'if' stmt in for/while loop. 
      
      * Add unittest to test all cases of convert_logical_XX. 
      
      * Add unittest to test all cases of convert_while_loop. 
      
      * Fix bug in LogicalOpTransformer. test=develop
      001c9fcc
  4. 08 5月, 2020 1 次提交
  5. 06 5月, 2020 1 次提交
    • L
      [Dy2Stat]Support list pop (#24250) · ac9a7eee
      liym27 提交于
      * Replace dygraph_to_static_func with @declarative or program_translator.get_func in test_list.py
      
      * Add comments in ConditionalBlock.
      
      * Support list pop last item. 
      
      * Support pop the i-th item. 
      
      * Support an empty tensor array as Input in assign op and set the kernel type is float.
      ac9a7eee
  6. 24 4月, 2020 1 次提交
    • L
      [Dy2Stat] Optimize loop cond (#24049) · 2961a4f0
      liym27 提交于
      * Simplify code for gast.If in is_control_flow_to_transform.
      * Move IsControlFlowVisitor to file utils. 
      * Don't use convert_call for build-in func in CallTransformer. 
      * Optimize api is_control_flow_to_transform. 
      * Polish the document of IsControlFlowVisitor.
      2961a4f0
  7. 26 3月, 2020 1 次提交
  8. 25 3月, 2020 1 次提交
    • H
      Rename Decorator "dygraph_to_static_graph" to "dygraph_to_static_func" (#23150) · e9b18c74
      Huihuang Zheng 提交于
      This PR does exact the thing as the title. The reason is that we plan to develop 4 decorators
      
      "dygraph_to_static_code"
      "dygraph_to_static_program"
      "dygraph_to_static_func"
      "dygraph_to_static_output"
      
       The 4 decorators will emphasize different part when translating dygraph to static graph. Decorator name "dygraph_to_static_graph" is too big for the function it implements.
      e9b18c74
  9. 24 3月, 2020 1 次提交
  10. 18 3月, 2020 1 次提交
  11. 13 3月, 2020 1 次提交
  12. 12 3月, 2020 1 次提交