• Q
    Add polynomial_decay and piecewise_decay (#8013) · 5cc2f0bd
    Qiao Longfei 提交于
    * init polynomial_decay
    
    * test polynomial_decay
    
    * complete polynomial_decay
    
    * fix conditional block op
    
    * init scalar-switch-case-op
    
    * switch op can compile
    
    * complete forward switch_op
    
    * add GetMatchCaseIndex
    
    * add switch_grad_op
    
    * init switch Python API
    
    * add test_switch
    
    * support set block list in python
    
    * fix scope problem
    
    * complete test
    
    * optimize test
    
    * optimize test
    
    * rm backward part
    
    * clear grad op
    
    * polynomial_decay use switch op
    
    * revert conditional_block_op and reshape_op
    
    * add piecewise_decay and test
    
    * fix piecewise_decay
    
    * try to use condition op for switch
    
    * can work
    
    * clean old code
    
    * revert
    
    * rm switch_op.cc
    
    * optimize code
    
    * add attr is_scalar_condition for condition_block_op
    
    * fix comment
    
    * fix comment
    
    * add export
    5cc2f0bd
control_flow.py 54.5 KB