Skip to content

Commit

Permalink
Check ValidationMonitor loss once per print_steps.
Browse files Browse the repository at this point in the history
  • Loading branch information
waleedka committed Apr 30, 2016
1 parent 5e22e3a commit 2ef359c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tensorflow/contrib/learn/python/learn/monitors.py
Expand Up @@ -184,6 +184,8 @@ def _set_last_loss_seen(self):
Also stores this value to appropriate buffers
"""
if self.steps % self.print_steps != 0:
return
[val_loss] = self.sess.run([self.loss_expression_tensor], feed_dict=self.val_dict)
self.last_loss_seen = val_loss
self.all_val_loss_buffer.append(val_loss)
Expand Down

0 comments on commit 2ef359c

Please sign in to comment.