def test_sum_squared_derivative(backend_default):
    outputs = np.array([0.5, 1.0, 0.0, 0.0001]).reshape((4, 1))
    targets = np.array(([0.5, 0.0, 1.0, 0.2])).reshape((4, 1))
    expected_result = (outputs - targets) / outputs.shape[1]
    compare_tensors(SumSquared(), outputs,
                    targets, expected_result, deriv=True, tol=1e-8)
dataset/ETHPy150Open NervanaSystems/neon/tests/test_costs.py/test_sum_squared_derivative/original