From 5a54f3d07af8237b55810a39929bbf1d47b21449 Mon Sep 17 00:00:00 2001 From: wangguanzhong Date: Tue, 2 Feb 2021 16:26:49 +0800 Subject: [PATCH] update check_version (#2158) --- ppdet/utils/check.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ppdet/utils/check.py b/ppdet/utils/check.py index 46b616310..ae64ad133 100644 --- a/ppdet/utils/check.py +++ b/ppdet/utils/check.py @@ -94,6 +94,8 @@ def check_version(version='1.7.0'): for i in six.moves.range(length): if version_installed[i] > version_split[i]: return + if len(version_installed[i]) == 1 and len(version_split[i]) > 1: + return if version_installed[i] < version_split[i]: raise Exception(err) -- GitLab