class_docstr: Trainer extension to print the accumulated results.
  
  This extension uses the log accumulated by a :class:`LogReport` extension
  to print specified entries of the log in a human-readable format.
  
  Args:
      entries (list of str): List of keys of observations to print.
      log_report (str or LogReport): Log report to accumulate the
          observations. This is either the name of a LogReport extensions
          registered to the trainer, or a LogReport instance to use
          internally.
      out: Stream to print the bar. Standard output is used by default.
class_docstr_tok: ["Trainer","extension","to","print","the","accumulated","results",".","This","extension","uses","the","log","accumulated","by","a",":","class",":","`","LogReport","`","extension","to","print","specified","entries","of","the","log","in","a","human-readable","format",".","Args",":","entries","(","list","of","str",")",":","List","of","keys","of","observations","to","print",".","log_report","(","str","or","LogReport",")",":","Log","report","to","accumulate","the","observations",".","This","is","either","the","name","of","a","LogReport","extensions","registered","to","the","trainer",",","or","a","LogReport","instance","to","use","internally",".","out",":","Stream","to","print","the","bar",".","Standard","output","is","used","by","default","."]
code: def _print(self, observation):
      out = self._out
      for entry, template, empty in self._templates:
          if entry in observation:
              out.write(template.format(observation[entry]))
          else:
              out.write(empty)
      out.write("\n")
      if hasattr(out, "flush"):
          out.flush()
  
file_path: chainer/chainer/training/extensions/print_report.py
imports: import os
  import sys
  from chainer.training import extension
  from chainer.training.extensions import log_report
  from chainer.training.extensions import util
label_desc: Use image node_id 4 for calling the PrintReport obj's underlying member method code with example usage: obj._print(observation) without return types