• A
    Support if/else in dygraph_to_static (#22540) · 08b09f64
    Aurelius84 提交于
    * support nested if/else
    
    * support to derivate returns the parameter list automatically
    
    * polish tranform function of slice
    
    * fix modify x.numpy()[i] slice function
    
    * support to transform ast.node into callable function
    
    * fix get_name_ids bug and add more unittest test=develop
    
    * fix requirements.txt test=develop
    
    * remove useless import statement test=develop
    
    * Fixed version compatibility issues in param of function test=develop
    
    * use decorater to test ast_to_func test=develop
    
    * add textwrap.dedent for source_code test=develop
    
    * polish code comment
    
    * fix compatibility with python2 and python3 test=develop
    
    * fix gast version error test=develop
    
    * fix gast repo test=develop
    
    * polish transfer_from_node_type code test=develop
    
    * add nested_if_else unittest test=develop
    
    * split IfElseTransformer test=develop
    
    * specify gast version test=develop
    
    * fix ast_to_func root type test=develop
    08b09f64
test_ast_util.py 4.9 KB