def _backward(self, grad_act, input_act):
        grad_input_act = grad_act
        # sum over the width and height dimensions (if any), average over all input examples
        grad_params = grad_act.mean(0)
        while grad_params.ndim > 1:
            grad_params = grad_params.sum(0)

        return grad_input_act, grad_params
dataset/ETHPy150Open bbabenko/simple_convnet/simple_convnet/convnet.py/BiasLayer._backward/original