From a24163a95edb193ff7b06e98cd69bf7cfd4c0d2f Mon Sep 17 00:00:00 2001 From: Soumith Chintala Date: Wed, 25 Jul 2018 17:28:04 -0700 Subject: [PATCH] fix lint --- torch/utils/cpp_extension.py | 1 + 1 file changed, 1 insertion(+) diff --git a/torch/utils/cpp_extension.py b/torch/utils/cpp_extension.py index 047b6303da2765..a7b64427d6d164 100644 --- a/torch/utils/cpp_extension.py +++ b/torch/utils/cpp_extension.py @@ -64,6 +64,7 @@ def _find_cuda_home(): # it the below pattern. BUILT_FROM_SOURCE_VERSION_PATTERN = re.compile(r'\d+\.\d+\.\d+\w+\+\w+') + def is_binary_build(): return not BUILT_FROM_SOURCE_VERSION_PATTERN.match(torch.version.__version__)