Recurrent Neural Network, Text Classification, Sentiment Analysis, Imdb Text Classification, Binary Classification.
tf.keras.layers.Bidirectional(tf.keras.layers.LSTM(64)), tf.keras.layers.Dense(64, activation='relu'), tf.keras.layers.Dense(1) ]) print([layer.supports_masking for layer in model.layers]) Output: [False, True, True, True, True] To confirm that this works as expected, evaluate a sentence twice.