How to deactivate a dropout layer called with training=True in a Keras model?
问题 I wish to view the final output of training a tf.keras model. In this case it would be an array of predictions from the softmax function, e.g. [0,0,0,1,0,1]. Other threads on here have suggested using model.predict(training_data), but this won't work for my situation since I am using dropout at training and validation, so neurons are randomly dropped and predicting again with the same data will give a different result. def get_model(): inputs = tf.keras.layers.Input(shape=(input_dims,)) x =