Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Xiaomi
Mace
提交
56595a64
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,发现更多精彩内容 >>
提交
56595a64
编写于
9月 25, 2017
作者:
L
Liangliang He
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add tensorflow build
上级
fb471e21
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
26 addition
and
35 deletion
+26
-35
.gitmodules
.gitmodules
+0
-0
WORKSPACE
WORKSPACE
+23
-34
docker/Dockerfile
docker/Dockerfile
+2
-1
mace/examples/BUILD
mace/examples/BUILD
+1
-0
未找到文件。
.gitmodules
0 → 100644
浏览文件 @
56595a64
WORKSPACE
浏览文件 @
56595a64
workspace
(
name
=
"mace"
)
# proto_library rules implicitly depend on @com_google_protobuf//:protoc,
# which is the proto-compiler.
# This statement defines the @com_google_protobuf repo.
http_archive
(
name
=
"
com_google_protobuf
"
,
urls
=
[
"http://v9.git.n.xiaomi.com/deep-learning/
protobuf/repository/archive.zip?ref=c7457ef65a7a8584b1e3bd396c401ccf8e275ffa
"
],
strip_prefix
=
"
protobuf-c7457ef65a7a8584b1e3bd396c401ccf8e275ffa-c7457ef65a7a8584b1e3bd396c401ccf8e275ffa
"
,
sha256
=
"
0a54cae83b77f4b54b7db4eaebadd81fbe91655e84a1ef3f6d29116d75f3a45f
"
,
name
=
"
org_tensorflow
"
,
urls
=
[
"http://v9.git.n.xiaomi.com/deep-learning/
tensorflow/repository/archive.zip?ref=v1.3.0
"
],
strip_prefix
=
"
tensorflow-v1.3.0-9e76bf324f6bac63137a02bb6e6ec9120703ea9b
"
,
sha256
=
"
97049d3a59a77858e12c55422bd129261b14e869a91aebcdcc39439393c00dc7
"
,
)
#
cc_proto_library rules implicitly depend on @com_google_protobuf_cc//:cc_toolchain,
#
which is the C++ proto runtime (base classes and common utilities)
.
#
TensorFlow depends on "io_bazel_rules_closure" so we need this here.
#
Needs to be kept in sync with the same target in TensorFlow's WORKSPACE file
.
http_archive
(
name
=
"com_google_protobuf_cc"
,
urls
=
[
"http://v9.git.n.xiaomi.com/deep-learning/protobuf/repository/archive.zip?ref=c7457ef65a7a8584b1e3bd396c401ccf8e275ffa"
],
strip_prefix
=
"protobuf-c7457ef65a7a8584b1e3bd396c401ccf8e275ffa-c7457ef65a7a8584b1e3bd396c401ccf8e275ffa"
,
sha256
=
"0a54cae83b77f4b54b7db4eaebadd81fbe91655e84a1ef3f6d29116d75f3a45f"
,
name
=
"io_bazel_rules_closure"
,
sha256
=
"60fc6977908f999b23ca65698c2bb70213403824a84f7904310b6000d78be9ce"
,
strip_prefix
=
"rules_closure-5ca1dab6df9ad02050f7ba4e816407f88690cf7d"
,
urls
=
[
"http://bazel-mirror.storage.googleapis.com/github.com/bazelbuild/rules_closure/archive/5ca1dab6df9ad02050f7ba4e816407f88690cf7d.tar.gz"
,
# 2017-02-03
"https://github.com/bazelbuild/rules_closure/archive/5ca1dab6df9ad02050f7ba4e816407f88690cf7d.tar.gz"
,
],
)
new_http_archive
(
name
=
"gtest"
,
url
=
"http://v9.git.n.xiaomi.com/deep-learning/googletest/repository/archive.zip?ref=release-1.8.0"
,
strip_prefix
=
"googletest-release-1.8.0-ec44c6c1675c25b9827aacd08c02433cccde7780"
,
sha256
=
"a0b43a0a43cda0cc401a46d75519d961ef27f6674d4126366e47d9c946c4bbcd"
,
build_file
=
"mace/third_party/gtest.BUILD"
,
)
# Import all of the tensorflow dependencies.
load
(
'@org_tensorflow//tensorflow:workspace.bzl'
,
'tf_workspace'
)
tf_workspace
(
tf_repo_name
=
"org_tensorflow"
)
new_http_archive
(
name
=
"six_archive"
,
urls
=
[
"http://mirror.bazel.build/pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz"
,
"https://pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz"
,
],
sha256
=
"105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a"
,
strip_prefix
=
"six-1.10.0"
,
build_file
=
"mace/third_party/six.BUILD"
,
)
bind
(
name
=
"six"
,
actual
=
"@six_archive//:six"
,
name
=
"ncnn"
,
urls
=
[
"http://v9.git.n.xiaomi.com/deep-learning/ncnn/repository/archive.zip?ref=bazel-fix"
],
strip_prefix
=
"ncnn-bazel-fix-ce5e416164545e1ab37fe3544502624f605ca234/src"
,
sha256
=
"e6d76356179bcdbb988279f0b42ab050c8af55970e1ad767787ad21d5b7aad51"
,
build_file
=
"mace/third_party/ncnn.BUILD"
,
)
# Set up Android NDK
android_ndk_repository
(
name
=
"androidndk"
,
# Android
5
.0
api_level
=
21
# Android
4
.0
api_level
=
14
)
docker/Dockerfile
浏览文件 @
56595a64
...
...
@@ -32,7 +32,8 @@ RUN apt-get install -y --no-install-recommends \
wget
ENV
ANDROID_NDK_HOME /opt/android-ndk
ENV
ANDROID_NDK_VERSION r15c
ENV
ANDROID_NDK /opt/android-ndk
ENV
ANDROID_NDK_VERSION r12c
# Android NDK
# download
...
...
mace/examples/BUILD
浏览文件 @
56595a64
...
...
@@ -9,6 +9,7 @@ cc_binary(
deps
=
[
"//mace/core"
,
"//mace/ops"
,
"@org_tensorflow//tensorflow/core:android_tensorflow_lib"
,
],
copts
=
[
"-std=c++11"
],
linkopts
=
if_android
([
"-ldl"
]),
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录