Fast Metric Learning For Deep Neural Networks