title: Activate dropout in a pre-trained VGG16 model
body: <p>I'm using Tensorflow 2.0 and a pre-trained VGG16 model and want to activate dropout during prediction. So far I tried the following without success:</p>
  
  <pre><code>model = tf.keras.applications.VGG16(input_shape=(224, 224, 3), weights='imagenet', is_training=True)
  
  model = tf.keras.applications.VGG16(input_shape=(224, 224, 3), weights='imagenet', dropout_rate=0.5)
  </code></pre>
  
  <p>However, none of these approaches worked. How can I enable dropout during the prediction phase?</p>