DigitMagazine

Weight Initialisation in Tensorflow

Jul 25th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. def create_weights(shape):
  2. return tf.Variable(tf.truncated_normal(shape, stddev=0.05))
  3.  
  4. def create_biases(size):
  5. return tf.Variable(tf.constant(0.05, shape=[size]))
Add Comment
Please, Sign In to add comment