Generalization analysis with deep ReLU networks for metric and similarity learning | Synapse