docstr: Add histogram to summary.
  
  Args:
      tag (string): Data identifier
      values (torch.Tensor, numpy.array, or string/blobname): Values to build histogram
      global_step (int): Global step value to record
      bins (string): one of {'tensorflow', 'auto', 'fd', ...}, this determines how the bins are made. You can find
        other options in: https://docs.scipy.org/doc/numpy/reference/generated/numpy.histogram.html
docstr_tok: ["Add","histogram","to","summary",".","Args",":","tag","(","string",")",":","Data","identifier","values","(","torch.Tensor",",","numpy.array",",","or","string\/blobname",")",":","Values","to","build","histogram","global_step","(","int",")",":","Global","step","value","to","record","bins","(","string",")",":","one","of","{","'tensorflow","'",",","'auto","'",",","'fd","'",",","...","}",",","this","determines","how","the","bins","are","made",".","You","can","find","other","options","in",":","https",":","\/\/docs.scipy.org\/doc\/numpy\/reference\/generated\/numpy.histogram.html"]
code: def add_histogram(
      self, tag, values, global_step=None, bins="tensorflow"
  ):
      """Add histogram to summary.
  
      Args:
          tag (string): Data identifier
          values (torch.Tensor, numpy.array, or string/blobname): Values to build histogram
          global_step (int): Global step value to record
          bins (string): one of {'tensorflow', 'auto', 'fd', ...}, this determines how the bins are made. You can find
            other options in: https://docs.scipy.org/doc/numpy/reference/generated/numpy.histogram.html
      """
      values = make_np(values)
      self.vis.histogram(make_np(values), opts={"title": tag})
  
imports: import gc
  import numpy
  import math
  import json
  import time
  from .summary import compute_curve
  from .utils import figure_to_image
  from .x2num import make_np
label_desc: Use image node_id 6 for calling the VisdomWriter obj's underlying member method code with example usage: obj.add_histogram(tag, values, global_step, bins) without return types