• Q
    create grad_var when run Backward pass (#4796) · d7383c6d
    Qiao Longfei 提交于
    * add target to Backward, generate var in block when call backward
    
    * modify backward_test
    
    * fix executor_test
    
    * set var desc default type to LOD_TENSOR
    
    * update backward_test
    
    * insert loss in the top level of backward
    
    * create grad vars for all blocks in current program
    
    * optimize code
    
    * update test_program.py
    
    * only create var for newly create blocks when backward
    d7383c6d
protobuf.cc 9.3 KB