class_docstr: Saves data in event and summary protos for tensorboard.
class_docstr_tok: ["Saves","data","in","event","and","summary","protos","for","tensorboard","."]
docstr: Saves histogram of values.
  
  Args:
    tag: str: label for this data
    values: ndarray: will be flattened by this routine
    step: int: training step
    bins: number of bins in histogram
docstr_tok: ["Saves","histogram","of","values",".","Args",":","tag",":","str",":","label","for","this","data","values",":","ndarray",":","will","be","flattened","by","this","routine","step",":","int",":","training","step","bins",":","number","of","bins","in","histogram"]
code: def histogram(self, tag, values, step, bins=None):
      """Saves histogram of values.
  
      Args:
        tag: str: label for this data
        values: ndarray: will be flattened by this routine
        step: int: training step
        bins: number of bins in histogram
      """
      values = np.array(values)
      values = np.reshape(values, -1)
      with self._as_default(self._event_writer):
          tf.summary.histogram(
              name=tag, data=values, step=step, buckets=bins
          )
  
file_path: flax/flax/metrics/tensorboard.py
imports: import contextlib
  import functools
  import os
  import numpy
  import tensorflow
  from tensorboard.plugins.hparams import api
  from flax import io
label_desc: Use image node_id 7 for calling the SummaryWriter obj's underlying member method code with example usage: obj.histogram(tag, values, step, bins) without return types