class_docstr: Writes summary data for visualization in TensorBoard.
  
  This class is not thread-safe.
  
  TODO(#4581): This API should be considered EXPERIMENTAL and subject to
  backwards-incompatible changes without notice.
class_docstr_tok: ["Writes","summary","data","for","visualization","in","TensorBoard",".","This","class","is","not","thread-safe",".","TODO","(","#","4581",")",":","This","API","should","be","considered","EXPERIMENTAL","and","subject","to","backwards-incompatible","changes","without","notice","."]
docstr: Constructs a Writer.
  
  Args:
    output: `tensorboard.summary.Output` object, or a string which will be
      interpreted as shorthand for an `Output` of the appropriate type. The
      only currently supported type is `DirectoryOutput`, where the string
      value given here will be used as the directory path.
docstr_tok: ["Constructs","a","Writer",".","Args",":","output",":","`","tensorboard.summary.Output","`","object",",","or","a","string","which","will","be","interpreted","as","shorthand","for","an","`","Output","`","of","the","appropriate","type",".","The","only","currently","supported","type","is","`","DirectoryOutput","`",",","where","the","string","value","given","here","will","be","used","as","the","directory","path","."]
code: def __init__(self, output):
      """Constructs a Writer.
  
      Args:
        output: `tensorboard.summary.Output` object, or a string which will be
          interpreted as shorthand for an `Output` of the appropriate type. The
          only currently supported type is `DirectoryOutput`, where the string
          value given here will be used as the directory path.
      """
      if isinstance(output, _output.Output):
          self._output = output
      elif isinstance(output, str):
          self._output = _output.DirectoryOutput(output)
      else:
          raise TypeError("Unsupported output object %r" % output)
      self._closed = False
  
file_path: tensorboard/tensorboard/summary/_writer.py
imports: import time
  import numpy
  from tensorboard.plugins.scalar import metadata
  from tensorboard.summary import _output
label_desc: Use image node_id 1 to create a new Writer object  with example: obj = Writer(output)