def cost_grad(self, final_acts, y):
        exp_act = safe_exp(final_acts)
        sum_exp = np.sum(exp_act, axis=1)
        return exp_act/sum_exp[:,np.newaxis] - y
dataset/ETHPy150Open bbabenko/simple_convnet/simple_convnet/convnet.py/SoftmaxNet.cost_grad/original