import tensorflow as tf

  summaries = {
      'triplet_loss/Margin':
          tf.constant(margin),
      'triplet_loss/Anchor/Positive/Distance/Mean':
          tf.math.reduce_mean(anchor_positive_distances),
      'triplet_mining/Anchor/Positive/Distance/Mean':
          tf.math.reduce_mean(anchor_positive_mining_distances),
  }
