When I write tf.keras.layers.LSTM
, I get the warning
Note that this layer is not optimized for performance. Please use tf.keras.layers.CuDNNLSTM for better performance on GPU.
But when I change the layer to tf.keras.layers.CuDNNLSTM
, I get the error
AttributeError: module 'tensorflow.python.keras.api._v2.keras.layers' has no attribute 'CuDNNLSTM'
Tensorflow version is 2.0.0-alpha0, Keras version is 2.2.4-tf.
How can I fix this problem?
CuDNNLSTM
layer intf 2.0
yet. See the available layers here tensorflow.org/versions/r2.0/api_docs/python/tf/keras/layers – Sreeram TPtf.compat.v1.keras.layers.CuDNNLSTM()
, nottf.keras.layers.CuDNNLSTM()
– Vlad