• Q
    Fix double_grad bug in statig-graph (#24190) · 84cf5db8
    qingqing01 提交于
    * Rename internal gradient variables in multiple backward
    * so that they have different names with previous backward
    * For example:
    *  y = x * x, grad = fluid.gradients(fluid.gradients(y, x) + y * y, x)
    * In second-time backward, gradient variable names of partial
    * forward network (y * y) may be have same names with first-time
    * fluid.gradients(y, x).
    
    test=develop
    84cf5db8
backward.py 71.6 KB