"docs/source/vscode:/vscode.git/clone" did not exist on "6ce2dc341561422c776b8d8bc9b921a02efcdd5e"
Commit c11ff52c authored by zhanggezhong's avatar zhanggezhong
Browse files

Update get_dcu_version.py

parent 472027a2
......@@ -7,10 +7,10 @@ from pathlib import Path
import os
UNKNOWN = "Unknown"
def sha_value(tf_root):
def sha_value(moe_root):
try:
return (
subprocess.check_output(["git", "rev-parse", "HEAD"], cwd=tf_root)
subprocess.check_output(["git", "rev-parse", "HEAD"], cwd=moe_root)
.decode("ascii")
.strip()
)
......@@ -48,8 +48,8 @@ def torch_version_value():
def moe_whl_name():
try:
tf_root = Path(__file__).parent.parent
sha = "das1.1.git" + sha_value(tf_root)[0:7]
moe_root = Path(__file__).parent
sha = "das1.1.git" + sha_value(moe_root)[0:7]
abi = "abi" + abi_value()
dtk_version = dtk_version_value()
try:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment