title: How could I limit the range of a variable in tensorflow
body: <p>I want to train a model using tensorflow. </p>
  
  <p>I have the following variable which I want the model to learn it</p>
  
  <pre><code>Mj=tf.get_variable('Mj_',dtype=tf.float32, shape=[500,4],initializer=tf.random_uniform_initializer(maxval=1, minval=0))
  </code></pre>
  
  <p>I want the resulted value of Mj to be between 0 and 1. How can I add this constraint? </p>