• X
    [ Dy2static ] select input fix and while_op memory bug fixed. (#45380) · 91298884
    xiongkun 提交于
    * while support for python container.
    It is convenient to convert more dynamic graph codes into static graphs.
    
    * cond support python container
    
    * 1. make select_input output shape = input[1]
    2. add warning in while_loop risky assign
    
    * fix 2 problem in GPT export:
    1. a bug in while_op no_need_copy_var, which causes gpu memory leakage
    2. a bug in undefined_var where the stop_gradient should be False.
    
    * change name by code review
    
    * format
    91298884
utils.py 45.2 KB