Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Xiaomi
Mace
提交
1cdfd952
Mace
项目概览
Xiaomi
/
Mace
通知
106
Star
40
Fork
27
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Mace
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
1cdfd952
编写于
3月 19, 2018
作者:
Y
yejianwu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update device_id for target_soc not found error msg
上级
360937e9
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
46 addition
and
6 deletion
+46
-6
tools/benchmark.sh
tools/benchmark.sh
+7
-1
tools/build_run_throughput_test.sh
tools/build_run_throughput_test.sh
+7
-1
tools/clear_env.sh
tools/clear_env.sh
+7
-1
tools/env.sh
tools/env.sh
+4
-0
tools/generate_production_code.sh
tools/generate_production_code.sh
+7
-1
tools/tuning_run.sh
tools/tuning_run.sh
+7
-1
tools/validate_tools.sh
tools/validate_tools.sh
+7
-1
未找到文件。
tools/benchmark.sh
浏览文件 @
1cdfd952
...
...
@@ -18,7 +18,13 @@ OPTION_ARGS=$3
echo
$OPTION_ARGS
DEVICE_ID
=
`
echo_device_id_by_soc
$TARGET_SOC
`
RESULT_VALUE
=
`
echo_device_id_by_soc
$TARGET_SOC
`
if
[
$?
-ne
0
]
;
then
echo
$RESULT_VALUE
exit
1
else
DEVICE_ID
=
$RESULT_VALUE
fi
if
[
-f
"
$MODEL_OUTPUT_DIR
/benchmark_model"
]
;
then
rm
-rf
$MODEL_OUTPUT_DIR
/benchmark_model
...
...
tools/build_run_throughput_test.sh
浏览文件 @
1cdfd952
...
...
@@ -17,7 +17,13 @@ RUN_SECONDS=$2
MERGED_LIB_FILE
=
$3
MODEL_INPUT_DIR
=
$4
DEVICE_ID
=
`
echo_device_id_by_soc
$TARGET_SOC
`
RESULT_VALUE
=
`
echo_device_id_by_soc
$TARGET_SOC
`
if
[
$?
-ne
0
]
;
then
echo
$RESULT_VALUE
exit
1
else
DEVICE_ID
=
$RESULT_VALUE
fi
if
[
"
$CPU_MODEL_TAG
"
!=
''
]
;
then
CPU_MODEL_TAG_BUILD_FLAGS
=
"--copt=-DMACE_CPU_MODEL_TAG=
${
CPU_MODEL_TAG
}
"
...
...
tools/clear_env.sh
浏览文件 @
1cdfd952
...
...
@@ -13,7 +13,13 @@ CURRENT_DIR=`dirname $0`
source
${
CURRENT_DIR
}
/env.sh
TARGET_SOC
=
$1
DEVICE_ID
=
`
echo_device_id_by_soc
$TARGET_SOC
`
RESULT_VALUE
=
`
echo_device_id_by_soc
$TARGET_SOC
`
if
[
$?
-ne
0
]
;
then
echo
$RESULT_VALUE
exit
1
else
DEVICE_ID
=
$RESULT_VALUE
fi
if
[
x
"
$TARGET_ABI
"
!=
x
"host"
]
;
then
adb
-s
$DEVICE_ID
shell
rm
-rf
$PHONE_DATA_DIR
||
exit
1
...
...
tools/env.sh
浏览文件 @
1cdfd952
...
...
@@ -40,6 +40,10 @@ echo_device_id_by_soc()
device_soc
=
`
adb
-s
${
device
}
shell getprop |
grep
ro.board.platform |
cut
-d
[
-f3
|
cut
-d
]
-f1
`
if
[
x
"
$TARGET_SOC
"
=
x
"
$device_soc
"
]
;
then
echo
"
$device
"
return
0
fi
done
echo
"MACE ERROR: Not found device with soc
${
TARGET_SOC
}
"
return
1
}
tools/generate_production_code.sh
浏览文件 @
1cdfd952
...
...
@@ -16,7 +16,13 @@ TARGET_SOC=$1
CL_BIN_DIRS
=
$2
PULL_OR_NOT
=
$3
DEVICE_ID
=
`
echo_device_id_by_soc
$TARGET_SOC
`
RESULT_VALUE
=
`
echo_device_id_by_soc
$TARGET_SOC
`
if
[
$?
-ne
0
]
;
then
echo
$RESULT_VALUE
exit
1
else
DEVICE_ID
=
$RESULT_VALUE
fi
if
[
"
$PULL_OR_NOT
"
=
1
]
;
then
CL_BIN_DIR
=
${
CL_BIN_DIRS
}
...
...
tools/tuning_run.sh
浏览文件 @
1cdfd952
...
...
@@ -22,7 +22,13 @@ OPTION_ARGS=$7
echo
$OPTION_ARGS
DEVICE_ID
=
`
echo_device_id_by_soc
$TARGET_SOC
`
RESULT_VALUE
=
`
echo_device_id_by_soc
$TARGET_SOC
`
if
[
$?
-ne
0
]
;
then
echo
$RESULT_VALUE
exit
1
else
DEVICE_ID
=
$RESULT_VALUE
fi
if
[
x
"
$TARGET_ABI
"
=
x
"host"
]
;
then
MACE_CPP_MIN_VLOG_LEVEL
=
$VLOG_LEVEL
\
...
...
tools/validate_tools.sh
浏览文件 @
1cdfd952
...
...
@@ -16,7 +16,13 @@ TARGET_SOC=$1
MODEL_OUTPUT_DIR
=
$2
GENERATE_DATA_OR_NOT
=
$3
DEVICE_ID
=
`
echo_device_id_by_soc
$TARGET_SOC
`
RESULT_VALUE
=
`
echo_device_id_by_soc
$TARGET_SOC
`
if
[
$?
-ne
0
]
;
then
echo
$RESULT_VALUE
exit
1
else
DEVICE_ID
=
$RESULT_VALUE
fi
IFS
=
','
read
-r
-a
INPUT_NAMES
<<<
"
${
INPUT_NODES
}
"
IFS
=
','
read
-r
-a
OUTPUT_NAMES
<<<
"
${
OUTPUT_NODES
}
"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录