8f87f244813c98b98bbd379f973bdba0ed7a9c72,starry/_core/ops/integration.py,rTReflectedOp,grad,#rTReflectedOp#Any#Any#,77

Before Change


        // call to their gradient method does not return a
        // list (which it *should*). We need to explicitly make it
        // into a list below.
        return [self._grad_op(*(inputs + gradients))]


class rTReflectedGradientOp(tt.Op):
    def __init__(self, base_op):

After Change


        outputs[2][0] = ddsigr

    def grad(self, inputs, gradients):
        results = self(*inputs)
        grad = self._grad_op(*(inputs + results + [gradients[0]]))
        return grad


class rTReflectedGradientOp(tt.Op):
    def __init__(self, base_op):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: rodluger/starry
Commit Name: 8f87f244813c98b98bbd379f973bdba0ed7a9c72
Time: 2020-04-30
Author: rodluger@gmail.com
File Name: starry/_core/ops/integration.py
Class Name: rTReflectedOp
Method Name: grad


Project Name: rodluger/starry
Commit Name: f065b29cc8667c3012761b9509886411d8095e57
Time: 2020-03-25
Author: rodluger@gmail.com
File Name: starry/_core/ops/integration.py
Class Name: sTReflectedOp
Method Name: grad


Project Name: stellargraph/stellargraph
Commit Name: 429267c276222ec57fa622039cdcc033379d9f97
Time: 2019-02-06
Author: wangzhen263@gmail.com
File Name: stellargraph/layer/gcn.py
Class Name: GCN
Method Name: node_model