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]
 assert_allclose(result, test_values, rtol=1e-05)

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 ] assert_allclose ( result , test_values , rtol = 1e-05 )
relu implementation doesnt depend on the value being a theano variable .