(self, errors, step)
| 94 | |
| 95 | # errors: dictionary of error labels and values |
| 96 | def plot_current_errors(self, errors, step): |
| 97 | if self.tf_log: |
| 98 | for tag, value in errors.items(): |
| 99 | summary = self.tf.Summary(value=[self.tf.Summary.Value(tag=tag, simple_value=value)]) |
| 100 | self.writer.add_summary(summary, step) |
| 101 | |
| 102 | # errors: same format as |errors| of plotCurrentErrors |
| 103 | def print_current_errors(self, epoch, i, errors, t): |