pytorch-TripletSemiHardLoss self-implemented pytorch-TripletSemiHardLoss after test. the same with tf.contrib.losses.metric_learning.triplet_semihard_loss