title: WARNING:tensorflow with constraint is deprecated and will be removed in a future version
body: <p>I am following Tensorflow's tutorial on building a simple neural network, and after importing the necessary libraries (tensorflow, keras, numpy &amp; matplotlib) and datasets (fashion_mnist) I ran this code as per the tutorial: </p>
  
  <pre><code>model = keras.Sequential([
      keras.layers.Flatten(input_shape=(28, 28)),
      keras.layers.Dense(128, activation='relu'),
      keras.layers.Dense(10, activation='softmax')
  ]) 
  </code></pre>
  
  <p>after running this code i received this warning message: </p>
  
  <blockquote>
    <p>WARNING:tensorflow:From
    /Applications/anaconda3/envs/tensorfloe/lib/python3.7/site-packages/tensorflow_core/python/ops/resource_variable_ops.py:1630:
    calling BaseResourceVariable.<strong>init</strong> (from
    tensorflow.python.ops.resource_variable_ops) with constraint is
    deprecated and will be removed in a future version. Instructions for
    updating: If using Keras pass *_constraint arguments to layers.</p>
  </blockquote>
  
  <p>How do i fix this? 
  Your help is highly appreciated.</p>