Guest User

Untitled

a guest
Dec 13th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. with tf.name_scope('digit1/'):
  2. with tf.variable_scope('digit1/'):
  3. softmax1_weights = tf.get_variable('digit1_w', shape=[num_hidden, num_labels],
  4. initializer=tf.contrib.layers.xavier_initializer())
  5. softmax1_biases = tf.get_variable('digit1_b', shape=[num_labels],
  6. initializer=tf.random_uniform_initializer(-0.1, 0.1))
  7.  
  8. tf.summary.histogram('weights', softmax1_weights)
  9. tf.summary.histogram('bias', softmax1_biases)
  10.  
  11. summary = tf.summary.merge_all()
Add Comment
Please, Sign In to add comment