Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
项目经理老王
Mace
提交
999e5ede
Mace
项目概览
项目经理老王
/
Mace
与 Fork 源项目一致
Fork自
Xiaomi / Mace
通知
1
Star
0
Fork
0
代码
文件
提交
分支
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,发现更多精彩内容 >>
提交
999e5ede
编写于
2月 19, 2019
作者:
李
李寅
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix mace tool interface bugs
上级
f2f05c0d
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
20 addition
and
12 deletion
+20
-12
.gitlab-ci.yml
.gitlab-ci.yml
+6
-0
docs/user_guide/advanced_usage.rst
docs/user_guide/advanced_usage.rst
+2
-1
mace/benchmark/benchmark_model.cc
mace/benchmark/benchmark_model.cc
+2
-2
mace/examples/android/macelibrary/src/main/cpp/image_classify.cc
...amples/android/macelibrary/src/main/cpp/image_classify.cc
+2
-1
mace/examples/cli/example.cc
mace/examples/cli/example.cc
+2
-2
mace/tools/validation/mace_run.cc
mace/tools/validation/mace_run.cc
+6
-6
未找到文件。
.gitlab-ci.yml
浏览文件 @
999e5ede
...
...
@@ -146,6 +146,12 @@ model_tests:
python tools/converter.py convert --config=${CONF_FILE} --target_socs=$TARGET_SOCS --model_graph_format=file --model_data_format=file || exit 1;
python tools/converter.py run --config=${CONF_FILE} --target_socs=$TARGET_SOCS --round=1 --validate --model_graph_format=file --model_data_format=file || exit 1;
python tools/converter.py run --config=${CONF_FILE} --target_socs=$TARGET_SOCS --example --round=1 --validate --model_graph_format=file --model_data_format=file || exit 1;
python tools/converter.py benchmark --config=${CONF_FILE} --target_socs=$TARGET_SOCS --round=5 --model_graph_format=file --model_data_format=file || exit 1;
python tools/converter.py convert --config=${CONF_FILE} --target_socs=$TARGET_SOCS --model_graph_format=code --model_data_format=file || exit 1;
python tools/converter.py run --config=${CONF_FILE} --target_socs=$TARGET_SOCS --round=1 --validate --model_graph_format=code --model_data_format=file || exit 1;
python tools/converter.py run --config=${CONF_FILE} --target_socs=$TARGET_SOCS --example --round=1 --validate --model_graph_format=code --model_data_format=file || exit 1;
python tools/converter.py benchmark --config=${CONF_FILE} --target_socs=$TARGET_SOCS --round=5 --model_graph_format=code --model_data_format=file || exit 1;
-
rm -rf mace-models
quantization_tests
:
...
...
docs/user_guide/advanced_usage.rst
浏览文件 @
999e5ede
...
...
@@ -252,7 +252,8 @@ Convert model(s) to C++ code
// Create Engine from compiled code
create_engine_status =
CreateMaceEngineFromCode(model_name.c_str(),
model_data_file, // empty string if model_data_format is code
model_data_ptr, // nullptr if model_data_format is code
model_data_size, // 0 if model_data_format is code
input_names,
output_names,
device_type,
...
...
mace/benchmark/benchmark_model.cc
浏览文件 @
999e5ede
...
...
@@ -292,8 +292,8 @@ int Main(int argc, char **argv) {
#ifdef MODEL_GRAPH_FORMAT_CODE
create_engine_status
=
CreateMaceEngineFromCode
(
FLAGS_model_name
,
model_weights_data
.
data
()
,
model_weights_data
.
size
()
,
model_weights_data
,
model_weights_data
_size
,
input_names
,
output_names
,
config
,
...
...
mace/examples/android/macelibrary/src/main/cpp/image_classify.cc
浏览文件 @
999e5ede
...
...
@@ -158,7 +158,8 @@ Java_com_xiaomi_mace_JniMaceUtils_maceMobilenetCreateEngine(
mace
::
MaceStatus
create_engine_status
=
CreateMaceEngineFromCode
(
mace_context
.
model_name
,
std
::
string
(),
nullptr
,
0
,
input_names
,
output_names
,
config
,
...
...
mace/examples/cli/example.cc
浏览文件 @
999e5ede
...
...
@@ -285,8 +285,8 @@ bool RunModel(const std::vector<std::string> &input_names,
// to model_data_file parameter.
create_engine_status
=
CreateMaceEngineFromCode
(
FLAGS_model_name
,
model_weights_data
.
data
()
,
model_weights_data
.
size
()
,
model_weights_data
,
model_weights_data
_size
,
input_names
,
output_names
,
config
,
...
...
mace/tools/validation/mace_run.cc
浏览文件 @
999e5ede
...
...
@@ -268,8 +268,8 @@ bool RunModel(const std::string &model_name,
#ifdef MODEL_GRAPH_FORMAT_CODE
create_engine_status
=
CreateMaceEngineFromCode
(
model_name
,
model_weights_data
.
data
()
,
model_weights_data
.
size
()
,
model_weights_data
,
model_weights_data
_size
,
input_names
,
output_names
,
config
,
...
...
@@ -349,8 +349,8 @@ bool RunModel(const std::string &model_name,
#ifdef MODEL_GRAPH_FORMAT_CODE
create_engine_status
=
CreateMaceEngineFromCode
(
model_name
,
model_weights_data
.
data
()
,
model_weights_data
.
size
()
,
model_weights_data
,
model_weights_data
_size
,
input_names
,
output_names
,
config
,
...
...
@@ -392,8 +392,8 @@ bool RunModel(const std::string &model_name,
#ifdef MODEL_GRAPH_FORMAT_CODE
create_engine_status
=
CreateMaceEngineFromCode
(
model_name
,
model_weights_data
.
data
()
,
model_weights_data
.
size
()
,
model_weights_data
,
model_weights_data
_size
,
input_names
,
output_names
,
config
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录