def l2_norm(t, eps=1e-12):
        """
        Returns:
            tf.Tensor: norm of 2D input tensor on axis 1
        """
        with tf.name_scope("l2_norm"):
            return tf.sqrt(tf.reduce_sum(tf.square(t), 1) + eps)

        Returns:
            tf.Tensor: norm of 2D input tensor on axis 1
        
examples/SimilarityLearning/mnist-embeddings.py