• L
    Control flow API: switch_case (#21103) · 92475282
    liym27 提交于
    * add API switch_case. test=develop
    
    add Nest
    
    * modify code according to reviews:
    1.Attr(branch_index) support 'uint8' and 'int64' besides 'int32'.
    2.remove useless code.
    test=develop
    
    * replace fluid.layers.data with fluid.data and polish API document. test=develop
    92475282
test_switch_case.py 11.6 KB