From 6c14170de673dc5792060a5cb3a2345f44d7e0ce Mon Sep 17 00:00:00 2001 From: Jensun Ravichandran Date: Wed, 12 May 2021 16:31:22 +0200 Subject: [PATCH] [BUGFIX] Fix typo --- prototorch/functions/distances.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prototorch/functions/distances.py b/prototorch/functions/distances.py index 14c0387..5bea3c4 100644 --- a/prototorch/functions/distances.py +++ b/prototorch/functions/distances.py @@ -30,7 +30,7 @@ def euclidean_distance(x, y): :returns: Distance Tensor of shape :math:`X \times Y` :rtype: `torch.tensor` """ - x, y = get_flat_x_y(x, y) + x, y = get_flat(x, y) distances_raised = squared_euclidean_distance(x, y) distances = torch.sqrt(distances_raised) return distances