From 88cbe0a1262aba1118468f2d101d50ab6805e5e9 Mon Sep 17 00:00:00 2001 From: blackfly Date: Tue, 14 Apr 2020 19:53:26 +0200 Subject: [PATCH] Add alias for squared_euclidean_distance --- prototorch/functions/distances.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/prototorch/functions/distances.py b/prototorch/functions/distances.py index b88082e..3fa1ae8 100644 --- a/prototorch/functions/distances.py +++ b/prototorch/functions/distances.py @@ -69,3 +69,7 @@ def lomega_distance(x, y, omegas): distances = torch.sum(differences_squared, dim=2) distances = distances.permute(1, 0) return distances + + +# Aliases +sed = squared_euclidean_distance