Fix to dist_fn when using dtw. Also added option to normalize embeddings.
Fix to dist_fn when using dtw. Also added option to normalize embeddings.

PiperOrigin-RevId: 265731973

google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research