Skip to content
Snippets Groups Projects
Commit d22e9248 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

Put accuracy back to train metrics

parent d2cf2619
Branches
Tags
1 merge request!68Several changes
...@@ -215,8 +215,8 @@ class Logits(estimator.Estimator): ...@@ -215,8 +215,8 @@ class Logits(estimator.Estimator):
variable_averages_op, loss_averages_op) variable_averages_op, loss_averages_op)
# Log accuracy and loss # Log accuracy and loss
tf.summary.scalar('accuracy', accuracy[1])
with tf.name_scope('train_metrics'): with tf.name_scope('train_metrics'):
tf.summary.scalar('accuracy', accuracy[1])
for l in tf.get_collection(tf.GraphKeys.LOSSES): for l in tf.get_collection(tf.GraphKeys.LOSSES):
tf.summary.scalar(l.op.name + "_averaged", tf.summary.scalar(l.op.name + "_averaged",
loss_averages.average(l)) loss_averages.average(l))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment