code: def summarize_tensors(tensor_dict, tag=None):
    
    if tag is None:
      tag = "tensors/"
  
    for t_name in list(tensor_dict):
      t = tensor_dict[t_name]
      tf.summary.histogram(tag + t_name, t)
docs: Summarize the tensors.
  
    Args:
      tensor_dict: a dictionary of tensors.
      tag: name scope of the summary; defaults to tensors/.