From 083b5c15971c8abda06bcc8260e79f0cd713890a Mon Sep 17 00:00:00 2001 From: Alexander Engelsberger Date: Mon, 30 Aug 2021 17:00:46 +0200 Subject: [PATCH] feat(compatibility): Python3.7 compatibility --- .travis.yml | 1 + prototorch/core/distances.py | 3 --- setup.py | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1ef6d58..65365fb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,7 @@ language: python python: - 3.9 - 3.8 + - 3.7 cache: directories: - "$HOME/.cache/pip" diff --git a/prototorch/core/distances.py b/prototorch/core/distances.py index c19a8dc..5de7c37 100644 --- a/prototorch/core/distances.py +++ b/prototorch/core/distances.py @@ -41,9 +41,6 @@ def euclidean_distance_v2(x, y): # batch diagonal. See: # https://pytorch.org/docs/stable/generated/torch.diagonal.html distances = torch.diagonal(pairwise_distances, dim1=-2, dim2=-1) - # print(f"{diff.shape=}") # (nx, ny, ndim) - # print(f"{pairwise_distances.shape=}") # (nx, ny, ny) - # print(f"{distances.shape=}") # (nx, ny) return distances diff --git a/setup.py b/setup.py index 3441f07..e83719f 100644 --- a/setup.py +++ b/setup.py @@ -59,7 +59,7 @@ setup( url=PROJECT_URL, download_url=DOWNLOAD_URL, license="MIT", - python_requires=">=3.8", + python_requires=">=3.7", install_requires=INSTALL_REQUIRES, extras_require={ "datasets": DATASETS,