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