Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
MMCV
Commits
0d20119a
Commit
0d20119a
authored
Jun 05, 2023
by
xiabo
Browse files
适配版本号
parent
65b7f5fa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mmcv/version.py
mmcv/version.py
+2
-2
No files found.
mmcv/version.py
View file @
0d20119a
# Copyright (c) OpenMMLab. All rights reserved.
__version__
=
'1.6.1'
__dcu_version__
=
'1.6.1'
def
parse_version_info
(
version_str
:
str
,
length
:
int
=
4
)
->
tuple
:
"""Parse a version string into a tuple.
...
...
@@ -32,4 +32,4 @@ def parse_version_info(version_str: str, length: int = 4) -> tuple:
version_info
=
tuple
(
int
(
x
)
for
x
in
__version__
.
split
(
'.'
)[:
3
])
__all__
=
[
'__version__'
,
'version_info'
,
'parse_version_info'
]
__all__
=
[
'__version__'
,
'__dcu_version__'
,
'version_info'
,
'parse_version_info'
]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment