Coded Residual Transform for Generalizable Deep Metric Learning