From 4e414312c8936c9a6e17e8017a684a9e8b1fac90 Mon Sep 17 00:00:00 2001 From: Robin Lobel Date: Wed, 2 Mar 2022 18:54:28 +0100 Subject: [PATCH] allow PyTorch 1.9 as minimum requirement, fix PyTorch install on mac --- torchstudio/pythoncheck.py | 2 +- torchstudio/pythoninstall.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/torchstudio/pythoncheck.py b/torchstudio/pythoncheck.py index 898efee..fc8d741 100644 --- a/torchstudio/pythoncheck.py +++ b/torchstudio/pythoncheck.py @@ -36,7 +36,7 @@ else: from importlib.metadata import version pytorch_version=tuple(int(i) for i in version('torch').split('.')[:2]) - min_pytorch_version=(1,9) if args.remote else (1,10) #1.9 required for torch.package support, 1.10 required for stable torch.fx and profile-directed typing in torchscript + min_pytorch_version=(1,9) #1.9 required for torch.package support, 1.10 preferred for stable torch.fx and profile-directed typing in torchscript if pytorch_version