def rnn_test(f):
 f = keras_test(f)
 return pytest.mark.parametrize('layer_class', [recurrent.SimpleRNN, recurrent.GRU, recurrent.LSTM])(f)

def rnn_test ( f ) : f = keras_test ( f ) return pytest . mark . parametrize ( 'layer_class' , [ recurrent . SimpleRNN , recurrent . GRU , recurrent . LSTM ] ) ( f )
all the recurrent layers share the same interface .