• X
    [ Dy2Static ]Change NameVisitor in while to FunctionScopeAnalysis (#44155) · c5c6026e
    xiongkun 提交于
    * change NameVisitor to FunctionScopeAnalysis
    
    * polish the logic of undefined var in while_loop. create vars after body execution
    
    * replace old NameVisitor in while and fix all CI
    
    * Togather with CreateVariableTransformer
    
    * add create_variable_transformer
    
    * fix bugs
    
    * merge
    
    * fix some error, TODO: ForNodePreTransform ahead
    
    * merge for unite PR
    
    * fix conflict with base_transformer PR
    
    * fix ci errors, fix [for i in range()] error
    
    * fix according to code review
    c5c6026e
__init__.py 1.8 KB