def test_mean_squared_limits(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 = np.mean((targets - outputs) ** 2, axis=0, keepdims=True) / 2.
    compare_tensors(MeanSquared(), outputs, targets, expected_result, tol=1e-7)
dataset/ETHPy150Open NervanaSystems/neon/tests/test_costs.py/test_mean_squared_limits/swapped operands of `-`