The Effect of Intrinsic Dimension on Metric Learning under Compression