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
FastMoE
Commits
c11ff52c
Commit
c11ff52c
authored
Jul 25, 2024
by
zhanggezhong
Browse files
Update get_dcu_version.py
parent
472027a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
get_dcu_version.py
get_dcu_version.py
+4
-4
No files found.
get_dcu_version.py
View file @
c11ff52c
...
@@ -7,10 +7,10 @@ from pathlib import Path
...
@@ -7,10 +7,10 @@ from pathlib import Path
import
os
import
os
UNKNOWN
=
"Unknown"
UNKNOWN
=
"Unknown"
def
sha_value
(
tf
_root
):
def
sha_value
(
moe
_root
):
try
:
try
:
return
(
return
(
subprocess
.
check_output
([
"git"
,
"rev-parse"
,
"HEAD"
],
cwd
=
tf
_root
)
subprocess
.
check_output
([
"git"
,
"rev-parse"
,
"HEAD"
],
cwd
=
moe
_root
)
.
decode
(
"ascii"
)
.
decode
(
"ascii"
)
.
strip
()
.
strip
()
)
)
...
@@ -48,8 +48,8 @@ def torch_version_value():
...
@@ -48,8 +48,8 @@ def torch_version_value():
def
moe_whl_name
():
def
moe_whl_name
():
try
:
try
:
tf
_root
=
Path
(
__file__
).
parent
.
parent
moe
_root
=
Path
(
__file__
).
parent
sha
=
"das1.1.git"
+
sha_value
(
tf
_root
)[
0
:
7
]
sha
=
"das1.1.git"
+
sha_value
(
moe
_root
)[
0
:
7
]
abi
=
"abi"
+
abi_value
()
abi
=
"abi"
+
abi_value
()
dtk_version
=
dtk_version_value
()
dtk_version
=
dtk_version_value
()
try
:
try
:
...
...
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