Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Xiaomi
Mace
提交
47b92dfd
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,发现更多精彩内容 >>
提交
47b92dfd
编写于
6月 29, 2018
作者:
Z
Zero King
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update docs
上级
7c8589f8
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
10 addition
and
9 deletion
+10
-9
docs/development/contributing.md
docs/development/contributing.md
+2
-1
docs/getting_started/create_a_model_deployment.rst
docs/getting_started/create_a_model_deployment.rst
+6
-6
docs/getting_started/how_to_build.rst
docs/getting_started/how_to_build.rst
+2
-2
未找到文件。
docs/development/contributing.md
浏览文件 @
47b92dfd
...
...
@@ -13,7 +13,8 @@ Python coding style
Changes to Python code should conform to
[
PEP8 Style Guide for Python
Code
](
https://www.python.org/dev/peps/pep-0008/
)
.
You can use
[
pycodestyle
](
ihttps://github.com/PyCQA/pycodestyle
)
check the style.
You can use
[
pycodestyle
](
ihttps://github.com/PyCQA/pycodestyle
)
to check the
style.
C++ coding style
----------------
...
...
docs/getting_started/create_a_model_deployment.rst
浏览文件 @
47b92dfd
Create a model deployment file
==============================
The first step to deploy you models is to create a YAML model deployment
The first step to deploy you
r
models is to create a YAML model deployment
file.
One deployment file describes a case of model deployment,
...
...
@@ -9,7 +9,7 @@ each file will generate one static library (if more than one ABIs specified,
there will be one static library for each). The deployment file can contain
one or more models, for example, a smart camera application may contain face
recognition, object recognition, and voice recognition models, which can be
defined in one deployment file
),
defined in one deployment file
.
Example
...
...
@@ -43,7 +43,7 @@ Configurations
* - linkshared
- [optional] Use dynamic linking for libmace library when setting to 1, or static linking when setting to 0, default to 0.
* - model_name
- model name
.
should be unique if there are multiple models.
- model name
,
should be unique if there are multiple models.
**LIMIT: if build_type is code, model_name will used in c++ code so that model_name must fulfill c++ name specification.**
* - platform
- The source framework, one of [tensorflow, caffe].
...
...
@@ -56,7 +56,7 @@ Configurations
* - weight_sha256_checksum
- [optional] The SHA256 checksum of the weight file, used by Caffe model.
* - subgraphs
- subgraphs key. **
DO NOT EDIT
**
- subgraphs key. **
DO NOT EDIT
**
* - input_tensors
- The input tensor names (tensorflow), top name of inputs' layer (caffe). one or more strings.
* - output_tensors
...
...
@@ -70,9 +70,9 @@ Configurations
* - validation_inputs_data
- [optional] Specify Numpy validation inputs. When not provided, [-1, 1] random values will be used.
* - runtime
- The running device, one of [cpu, gpu, dsp, cpu_gpu]. cpu_gpu contains
cpu and gpu model definition so you can run the model on both cpu and gpu
.
- The running device, one of [cpu, gpu, dsp, cpu_gpu]. cpu_gpu contains
CPU and GPU model definition so you can run the model on both CPU and GPU
.
* - data_type
- [optional] The data type used for specified runtime. [fp16_fp32, fp32_fp32] for
gpu, default is fp16_fp32. [fp32] for cpu. [uint8] for dsp
.
- [optional] The data type used for specified runtime. [fp16_fp32, fp32_fp32] for
GPU, default is fp16_fp32. [fp32] for CPU. [uint8] for DSP
.
* - limit_opencl_kernel_time
- [optional] Whether splitting the OpenCL kernel within 1 ms to keep UI responsiveness, default to 0.
* - nnlib_graph_mode
...
...
docs/getting_started/how_to_build.rst
浏览文件 @
47b92dfd
...
...
@@ -67,8 +67,8 @@ MACE requires the following dependencies:
``
export
ANDROID_NDK_HOME
=/
path
/
to
/
ndk
``
to
specify
ANDROID_NDK_HOME
MACE
provides
Dockerfile
with
these
dependencies
installed
,
you
can
build
the
image
from
the
Dockerfile
,
MACE
provides
a
Dockerfile
with
these
dependencies
installed
,
you
can
build
the
image
from
it
,
..
code
::
sh
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录