未验证 提交 b85ac935 编写于 作者: X Xin Pan 提交者: GitHub

Merge pull request #13803 from velconia/10_version

Fix paddle version
...@@ -27,7 +27,7 @@ def _get_version_detail(idx): ...@@ -27,7 +27,7 @@ def _get_version_detail(idx):
if re.match('@TAG_VERSION_REGEX@', '@PADDLE_VERSION@'): if re.match('@TAG_VERSION_REGEX@', '@PADDLE_VERSION@'):
version_details = '@PADDLE_VERSION@'.split('.') version_details = '@PADDLE_VERSION@'.split('.')
if len(version_details) == 3: if len(version_details) >= 3:
return version_details[idx] return version_details[idx]
return 0 return 0
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册