Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Xiaomi
Mace
提交
ef7d7e01
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,发现更多精彩内容 >>
提交
ef7d7e01
编写于
6月 20, 2018
作者:
F
fuqiang6
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Improve how_to_build doc
上级
0fdea60f
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
87 addition
and
48 deletion
+87
-48
docs/getting_started/how_to_build.rst
docs/getting_started/how_to_build.rst
+87
-48
未找到文件。
docs/getting_started/how_to_build.rst
浏览文件 @
ef7d7e01
...
...
@@ -31,10 +31,10 @@ MiAI Compute Engine requires the following dependencies:
-
install
command
*
-
bazel
-
>=
0.13.0
-
`
bazel
installation
<
https
://
docs
.
bazel
.
build
/
versions
/
master
/
install
.
html
>`
__
-
`
bazel
installation
guide
<
https
://
docs
.
bazel
.
build
/
versions
/
master
/
install
.
html
>`
__
*
-
android
-
ndk
-
r15c
/
r16b
-
`
NDK
installation
<
https
://
developer
.
android
.
com
/
ndk
/
guides
/
setup
>`
__
or
reference
the
docker
file
-
`
NDK
installation
guide
<
https
://
developer
.
android
.
com
/
ndk
/
guides
/
setup
#
install
>`
__
or
refers
to
the
docker
file
*
-
adb
-
>=
1.0.32
-
apt
-
get
install
android
-
tools
-
adb
...
...
@@ -43,29 +43,29 @@ MiAI Compute Engine requires the following dependencies:
-
pip
install
-
I
tensorflow
==
1.6.0
(
if
you
use
tensorflow
model
)
*
-
numpy
-
>=
1.14.0
-
pip
install
-
I
numpy
=
1.14.0
-
pip
install
-
I
numpy
=
=
1.14.0
*
-
scipy
-
>=
1.0.0
-
pip
install
-
I
scipy
=
1.0.0
-
pip
install
-
I
scipy
=
=
1.0.0
*
-
jinja2
-
>=
2.10
-
pip
install
-
I
jinja2
=
2.10
-
pip
install
-
I
jinja2
=
=
2.10
*
-
PyYaml
-
>=
3.12.0
-
pip
install
-
I
pyyaml
=
3.12
-
pip
install
-
I
pyyaml
=
=
3.12
*
-
sh
-
>=
1.12.14
-
pip
install
-
I
sh
=
1.12.14
-
pip
install
-
I
sh
=
=
1.12.14
*
-
filelock
-
>=
3.0.0
-
pip
install
-
I
filelock
=
3.0.0
-
pip
install
-
I
filelock
=
=
3.0.0
*
-
docker
(
for
caffe
)
-
>=
17.09.0
-
ce
-
`
install
doc
<
https
://
docs
.
docker
.
com
/
install
/
linux
/
docker
-
ce
/
ubuntu
/#
set
-
up
-
the
-
repository
>`
__
-
`
docker
installation
guide
<
https
://
docs
.
docker
.
com
/
install
/
linux
/
docker
-
ce
/
ubuntu
/#
set
-
up
-
the
-
repository
>`
__
..
note
::
``
export
ANDROID_NDK_HOME
=/
path
/
to
/
ndk
``
to
S
pecify
ANDROID_NDK_HOME
``
export
ANDROID_NDK_HOME
=/
path
/
to
/
ndk
``
to
s
pecify
ANDROID_NDK_HOME
MiAI
Compute
Engine
provides
Dockerfile
with
these
dependencies
installed
,
you
can
build
the
image
from
the
Dockerfile
,
...
...
@@ -81,7 +81,7 @@ or pull the pre-built image from Docker Hub,
docker
pull
xiaomimace
/
mace
-
dev
and
then
run
the
container
with
the
following
command
,
and
then
run
the
container
with
the
following
command
.
..
code
::
sh
...
...
@@ -100,7 +100,7 @@ Usage
..
code
::
sh
git
clone
git
@
v9
.
git
.
n
.
xiaomi
.
com
:
deep
-
computing
/
mace
.
git
git
clone
https
://
github
.
com
/
XiaoMi
/
mace
.
git
git
fetch
--
all
--
tags
--
prune
#
Checkout
the
latest
tag
(
i
.
e
.
release
version
)
...
...
@@ -226,28 +226,92 @@ model conversion, compiling, test run, benchmark and correctness validation.
*
**
build
**
..
note
::
build
library
and
test
tools
.
*
**
run
**
..
code
::
sh
#
Build
library
python
tools
/
converter
.
py
build
--
config
=
models
/
config
.
yaml
..
note
::
*
**
run
**
run
the
model
(
s
).
..
code
::
sh
#
Test
model
run
time
python
tools
/
converter
.
py
run
--
config
=
models
/
config
.
yaml
--
round
=
100
#
Validate
the
correctness
by
comparing
the
results
against
the
#
original
model
and
framework
,
measured
with
cosine
distance
for
similarity
.
python
tools
/
converter
.
py
run
--
config
=
models
/
config
.
yaml
--
validate
#
Check
the
memory
usage
of
the
model
(**
Just
keep
only
one
model
in
configuration
file
**)
python
tools
/
converter
.
py
run
--
config
=
models
/
config
.
yaml
--
round
=
10000
&
sleep
5
adb
shell
dumpsys
meminfo
|
grep
mace_run
kill
%
1
..
warning
::
``
run
``
rely
on
``
build
``
command
,
you
should
``
run
``
after
``
build
``.
*
**
benchmark
**
benchmark
and
profiling
model
.
..
code
::
sh
#
Benchmark
model
,
get
detailed
statistics
of
each
Op
.
python
tools
/
converter
.
py
benchmark
--
config
=
models
/
config
.
yaml
..
warning
::
``
benchmark
``
rely
on
``
build
``
command
,
you
should
``
benchmark
``
after
``
build
``.
**
Common
arguments
**
Use
``-
h
``
to
get
detailed
help
.
..
list
-
table
::
:
widths
:
auto
:
header
-
rows
:
1
:
align
:
left
*
-
option
-
type
-
default
-
commands
-
explanation
*
-
--
omp_num_threads
-
int
-
-
1
-
``
run
``/``
benchmark
``
-
number
of
threads
*
-
--
cpu_affinity_policy
-
int
-
1
-
``
run
``/``
benchmark
``
-
0
:
AFFINITY_NONE
/
1
:
AFFINITY_BIG_ONLY
/
2
:
AFFINITY_LITTLE_ONLY
*
-
--
gpu_perf_hint
-
int
-
3
-
``
run
``/``
benchmark
``
-
0
:
DEFAULT
/
1
:
LOW
/
2
:
NORMAL
/
3
:
HIGH
*
-
--
gpu_perf_hint
-
int
-
3
-
``
run
``/``
benchmark
``
-
0
:
DEFAULT
/
1
:
LOW
/
2
:
NORMAL
/
3
:
HIGH
*
-
--
gpu_priority_hint
-
int
-
3
-
``
run
``/``
benchmark
``
-
0
:
DEFAULT
/
1
:
LOW
/
2
:
NORMAL
/
3
:
HIGH
Using
``-
h
``
to
get
detailed
help
.
..
code
::
sh
...
...
@@ -257,31 +321,6 @@ Use ``-h`` to get detailed help.
python
tools
/
converter
.
py
benchmark
-
h
---------------------------------------------
3.3
\
``
tools
/
converter
.
py
``\
usage
examples
---------------------------------------------
..
code
::
sh
#
Build
library
python
tools
/
converter
.
py
build
--
config
=
models
/
config
.
yaml
#
Test
model
run
time
python
tools
/
converter
.
py
run
--
config
=
models
/
config
.
yaml
--
round
=
100
#
Validate
the
correctness
by
comparing
the
results
against
the
#
original
model
and
framework
,
measured
with
cosine
distance
for
similarity
.
python
tools
/
converter
.
py
run
--
config
=
models
/
config
.
yaml
--
validate
#
Benchmark
and
profiling
model
,
get
detailed
statistics
of
each
Op
.
python
tools
/
converter
.
py
benchmark
--
config
=
models
/
config
.
yaml
#
Check
the
memory
usage
of
the
model
(**
Just
keep
only
one
model
in
configuration
file
**)
python
tools
/
converter
.
py
run
--
config
=
models
/
config
.
yaml
--
round
=
10000
&
sleep
5
adb
shell
dumpsys
meminfo
|
grep
mace_run
kill
%
1
=============
4.
Deployment
=============
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录