From b3ce7fef6df4841ab2ea065beb9dc478da701b49 Mon Sep 17 00:00:00 2001 From: fynnbe Date: Thu, 3 Nov 2022 21:13:58 +0100 Subject: [PATCH] pip for all tf1 versions --- scripts/static_validation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/static_validation.py b/scripts/static_validation.py index 74fdae6181..dc9bf950da 100644 --- a/scripts/static_validation.py +++ b/scripts/static_validation.py @@ -81,8 +81,8 @@ def get_default_env( conda_env["dependencies"].append("cpuonly") if tensorflow_version is not None: - # tensorflow 1.15 is not available on conda, so we need to inject this as a pip dependency - if (tensorflow_version.major, tensorflow_version.minor) == (1, 15): + # tensorflow 1 is not available on conda, so we need to inject this as a pip dependency + if tensorflow_version.major == 1: assert opset_version is None assert pytorch_version is None conda_env["dependencies"] = ["pip", "python >=3.7,<3.8"] # tf 1.15 not available for py>=3.8