Learning Deep Embeddings By Learning To Rank