Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
wux_labs
Tensorflow
提交
f4e89d45
T
Tensorflow
项目概览
wux_labs
/
Tensorflow
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Tensorflow
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f4e89d45
编写于
6月 03, 2016
作者:
A
Andrew Harp
提交者:
TensorFlower Gardener
6月 03, 2016
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add android_tensorflow_test_lib target and consistently use if_android in tensorflow/core/BUILD.
Change: 124005557
上级
41d6b889
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
39 addition
and
20 deletion
+39
-20
tensorflow/core/BUILD
tensorflow/core/BUILD
+39
-20
未找到文件。
tensorflow/core/BUILD
浏览文件 @
f4e89d45
...
@@ -53,6 +53,7 @@ licenses(["notice"]) # Apache 2.0
...
@@ -53,6 +53,7 @@ licenses(["notice"]) # Apache 2.0
load
(
load
(
"//tensorflow:tensorflow.bzl"
,
"//tensorflow:tensorflow.bzl"
,
"if_android"
,
"tf_copts"
,
"tf_copts"
,
"tf_cc_test"
,
"tf_cc_test"
,
"tf_cc_tests"
,
"tf_cc_tests"
,
...
@@ -667,13 +668,7 @@ filegroup(
...
@@ -667,13 +668,7 @@ filegroup(
# --host_crosstool_top=@bazel_tools//tools/cpp:toolchain
# --host_crosstool_top=@bazel_tools//tools/cpp:toolchain
cc_library
(
cc_library
(
name
=
"android_tensorflow_lib_lite"
,
name
=
"android_tensorflow_lib_lite"
,
srcs
=
srcs
=
if_android
([
"//tensorflow/core:android_srcs"
]),
select
({
"//tensorflow:android"
:
[
"//tensorflow/core:android_srcs"
,
],
"//conditions:default"
:
[],
}),
copts
=
tf_copts
()
+
[
"-Os"
],
copts
=
tf_copts
()
+
[
"-Os"
],
tags
=
[
tags
=
[
"manual"
,
"manual"
,
...
@@ -691,12 +686,7 @@ cc_library(
...
@@ -691,12 +686,7 @@ cc_library(
# binary size (by packaging a reduced operator set) is a concern.
# binary size (by packaging a reduced operator set) is a concern.
cc_library
(
cc_library
(
name
=
"android_tensorflow_lib"
,
name
=
"android_tensorflow_lib"
,
srcs
=
select
({
srcs
=
if_android
([
":android_op_registrations_and_gradients"
]),
"//tensorflow:android"
:
[
":android_op_registrations_and_gradients"
,
],
"//conditions:default"
:
[],
}),
copts
=
tf_copts
(),
copts
=
tf_copts
(),
tags
=
[
tags
=
[
"manual"
,
"manual"
,
...
@@ -718,13 +708,7 @@ cc_library(
...
@@ -718,13 +708,7 @@ cc_library(
# registration of ops to prune code size.
# registration of ops to prune code size.
cc_library
(
cc_library
(
name
=
"android_tensorflow_lib_selective_registration"
,
name
=
"android_tensorflow_lib_selective_registration"
,
srcs
=
srcs
=
if_android
([
"//tensorflow/core:android_srcs"
]),
select
({
"//tensorflow:android"
:
[
"//tensorflow/core:android_srcs"
,
],
"//conditions:default"
:
[],
}),
copts
=
tf_copts
()
+
[
copts
=
tf_copts
()
+
[
"-Os"
,
"-Os"
,
"-DSUPPORT_SELECTIVE_REGISTRATION"
,
"-DSUPPORT_SELECTIVE_REGISTRATION"
,
...
@@ -758,6 +742,41 @@ filegroup(
...
@@ -758,6 +742,41 @@ filegroup(
visibility
=
[
"//visibility:public"
],
visibility
=
[
"//visibility:public"
],
)
)
filegroup
(
name
=
"android_test_srcs"
,
# TODO(andrewharp/nhua):
# make more test-related sources portable e.g. "platform/test.cc",
srcs
=
[
"//tensorflow/core:framework/fake_input.cc"
,
"//tensorflow/core:framework/fake_input.h"
,
"//tensorflow/core:framework/tensor_testutil.cc"
,
"//tensorflow/core:framework/tensor_testutil.h"
,
"//tensorflow/core:platform/test.h"
,
"//tensorflow/core:util/reporter.cc"
,
"//tensorflow/core:util/reporter.h"
,
],
visibility
=
[
"//visibility:public"
],
)
# Portable library providing testing functionality for Tensorflow.
cc_library
(
name
=
"android_tensorflow_test_lib"
,
testonly
=
1
,
srcs
=
if_android
([
":android_test_srcs"
]),
copts
=
tf_copts
()
+
[
"-Os"
],
tags
=
[
"manual"
,
"notap"
,
],
visibility
=
[
"//visibility:public"
],
deps
=
[
":android_tensorflow_lib"
,
":protos_cc"
,
"//tensorflow/core/platform/default/build_config:gtest"
,
"//third_party/eigen3"
,
],
)
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
# Libraries with GPU facilities that are useful for writing kernels.
# Libraries with GPU facilities that are useful for writing kernels.
cc_library
(
cc_library
(
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录