Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
慢慢CG
Mace
提交
40100286
Mace
项目概览
慢慢CG
/
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看板
提交
40100286
编写于
8月 22, 2019
作者:
B
Bin Li
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix dynamic linking and DSP code/code
上级
ef686ee9
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
4 addition
and
4 deletion
+4
-4
.gitlab-ci.yml
.gitlab-ci.yml
+2
-1
mace/tools/BUILD.bazel
mace/tools/BUILD.bazel
+0
-1
tools/python/encrypt.py
tools/python/encrypt.py
+2
-2
未找到文件。
.gitlab-ci.yml
浏览文件 @
40100286
...
@@ -155,7 +155,8 @@ dynamic_linking_test:
...
@@ -155,7 +155,8 @@ dynamic_linking_test:
DEVICE_CONF_FILE=generic-mobile-devices/devices.yml
DEVICE_CONF_FILE=generic-mobile-devices/devices.yml
fi
fi
-
if [ -z "$TARGET_SOCS" ]; then TARGET_SOCS=random; fi
-
if [ -z "$TARGET_SOCS" ]; then TARGET_SOCS=random; fi
-
python tools/converter.py convert --config=${CONF_FILE} --target_socs=$TARGET_SOCS --model_graph_format=file --model_data_format=file --cl_mem_type=buffer
-
python tools/converter.py convert --config=${CONF_FILE} --target_socs=$TARGET_SOCS --model_graph_format=file --model_data_format=file --cl_mem_type=buffer || exit 1;
-
python tools/converter.py run --config=${CONF_FILE} --target_socs=$TARGET_SOCS --device_yml=${DEVICE_CONF_FILE} --round=1 --validate --model_graph_format=file --model_data_format=file --mace_lib_type=dynamic || exit 1;
-
rm -rf mace-models
-
rm -rf mace-models
only
:
only
:
-
triggers
-
triggers
mace/tools/BUILD.bazel
浏览文件 @
40100286
...
@@ -49,7 +49,6 @@ cc_binary(
...
@@ -49,7 +49,6 @@ cc_binary(
]),
]),
linkstatic
=
0
,
linkstatic
=
0
,
deps
=
[
deps
=
[
":statistics"
,
"//external:gflags_nothreads"
,
"//external:gflags_nothreads"
,
"//mace/codegen:generated_mace_engine_factory"
,
"//mace/codegen:generated_mace_engine_factory"
,
"//mace/codegen:generated_models"
,
"//mace/codegen:generated_models"
,
...
...
tools/python/encrypt.py
浏览文件 @
40100286
...
@@ -134,7 +134,7 @@ def save_model_to_code(namespace, model, params, model_checksum,
...
@@ -134,7 +134,7 @@ def save_model_to_code(namespace, model, params, model_checksum,
try
:
try
:
device
=
cvt
.
DeviceType
[
device
.
upper
()]
device
=
cvt
.
DeviceType
[
device
.
upper
()]
except
:
# noqa
except
:
# noqa
if
device
.
upper
==
"DSP"
:
if
device
.
upper
()
==
"DSP"
:
device
=
cvt
.
DeviceType
.
HEXAGON
device
=
cvt
.
DeviceType
.
HEXAGON
else
:
else
:
device
=
cvt
.
DeviceType
.
CPU
device
=
cvt
.
DeviceType
.
CPU
...
@@ -145,7 +145,7 @@ def save_model_to_code(namespace, model, params, model_checksum,
...
@@ -145,7 +145,7 @@ def save_model_to_code(namespace, model, params, model_checksum,
end
=
min
(
start
+
10
,
op_size
),
end
=
min
(
start
+
10
,
op_size
),
net
=
model
,
net
=
model
,
tag
=
namespace
,
tag
=
namespace
,
device
=
device
,
device
=
device
.
value
,
)
)
with
open
(
output
+
"/op"
+
str
(
counter
)
+
".cc"
,
"w"
)
as
f
:
with
open
(
output
+
"/op"
+
str
(
counter
)
+
".cc"
,
"w"
)
as
f
:
f
.
write
(
source
)
f
.
write
(
source
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录