def test_relu():
    x = K.placeholder(ndim=2)
    f = K.function([x], [activations.relu(x)])

    test_values = get_standard_values()
    result = f([test_values])[0]

    # because no negatives in test values
    assert_allclose(result, test_values, rtol=1e-05)
Relu implementation doesn't depend on the value being
dataset/ETHPy150Open fchollet/keras/tests/keras/test_activations.py/test_relu