Skip to content

Commit

Permalink
Fix illegal summary names
Browse files Browse the repository at this point in the history
  • Loading branch information
reuben committed Mar 20, 2019
1 parent 375ba28 commit a6bbe8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DeepSpeech.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def log_variable(variable, gradient=None):
It logs scalar values for the mean, standard deviation, minimum and maximum.
Furthermore it logs a histogram of its state and (if given) of an optimization gradient.
'''
name = variable.name
name = variable.name.replace(':', '_')
mean = tf.reduce_mean(variable)
tf.summary.scalar(name='%s/mean' % name, tensor=mean)
tf.summary.scalar(name='%s/sttdev' % name, tensor=tf.sqrt(tf.reduce_mean(tf.square(variable - mean))))
Expand Down

0 comments on commit a6bbe8b

Please sign in to comment.