Train Networks with Various Loss Function using PyTorch(version: 0.4.0) Triplet Loss see the website "https://github.com/SmallHedgehog/Loss-PyTorch/tree/master/triplet_loss" for more details.