Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
qq_38905368
tensorflow
提交
8a0e81d8
T
tensorflow
项目概览
qq_38905368
/
tensorflow
与 Fork 源项目一致
从无法访问的项目Fork
通知
5
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
tensorflow
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
8a0e81d8
编写于
10月 20, 2016
作者:
A
A. Unique TensorFlower
提交者:
TensorFlower Gardener
10月 20, 2016
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Automated rollback of change 136664737
Change: 136743547
上级
8644bc9b
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
80 addition
and
47 deletion
+80
-47
tensorflow/core/BUILD
tensorflow/core/BUILD
+77
-0
tensorflow/tensorflow.bzl
tensorflow/tensorflow.bzl
+2
-44
tensorflow/tools/pip_package/BUILD
tensorflow/tools/pip_package/BUILD
+1
-3
未找到文件。
tensorflow/core/BUILD
浏览文件 @
8a0e81d8
...
...
@@ -1107,6 +1107,83 @@ cc_header_only_library(
],
)
filegroup
(
name
=
"framework_headers"
,
srcs
=
[
"framework/allocator.h"
,
"framework/attr_value_util.h"
,
"framework/bfloat16.h"
,
"framework/cancellation.h"
,
"framework/control_flow.h"
,
"framework/device_base.h"
,
"framework/function.h"
,
"framework/kernel_def_builder.h"
,
"framework/node_def_util.h"
,
"framework/numeric_types.h"
,
"framework/op.h"
,
"framework/op_def_builder.h"
,
"framework/op_def_util.h"
,
"framework/op_kernel.h"
,
"framework/partial_tensor_shape.h"
,
"framework/register_types.h"
,
"framework/rendezvous.h"
,
"framework/selective_registration.h"
,
"framework/session_state.h"
,
"framework/shape_inference.h"
,
"framework/tensor.h"
,
"framework/tensor_reference.h"
,
"framework/tensor_shape.h"
,
"framework/tensor_types.h"
,
"framework/tracking_allocator.h"
,
"framework/type_traits.h"
,
"framework/types.h"
,
"framework/unique_tensor_references.h"
,
"lib/core/errors.h"
,
"lib/core/notification.h"
,
"lib/core/refcount.h"
,
"lib/core/status.h"
,
"lib/core/stringpiece.h"
,
"lib/core/threadpool.h"
,
"lib/gtl/array_slice.h"
,
"lib/gtl/array_slice_internal.h"
,
"lib/gtl/inlined_vector.h"
,
"lib/gtl/manual_constructor.h"
,
"lib/hash/hash.h"
,
"lib/strings/numbers.h"
,
"lib/strings/str_util.h"
,
"lib/strings/strcat.h"
,
"platform/cpu_info.h"
,
"platform/default/dynamic_annotations.h"
,
"platform/default/integral_types.h"
,
"platform/default/logging.h"
,
"platform/default/mutex.h"
,
"platform/default/notification.h"
,
"platform/default/protobuf.h"
,
"platform/default/thread_annotations.h"
,
"platform/dynamic_annotations.h"
,
"platform/env.h"
,
"platform/file_statistics.h"
,
"platform/file_system.h"
,
"platform/fingerprint.h"
,
"platform/logging.h"
,
"platform/macros.h"
,
"platform/mem.h"
,
"platform/mutex.h"
,
"platform/net.h"
,
"platform/notification.h"
,
"platform/platform.h"
,
"platform/prefetch.h"
,
"platform/protobuf.h"
,
"platform/strong_hash.h"
,
"platform/thread_annotations.h"
,
"platform/types.h"
,
"public/session.h"
,
"public/session_options.h"
,
"public/version.h"
,
"util/device_name_utils.h"
,
],
)
tf_cuda_library
(
name
=
"stream_executor"
,
srcs
=
tf_additional_stream_executor_srcs
(),
...
...
tensorflow/tensorflow.bzl
浏览文件 @
8a0e81d8
...
...
@@ -630,53 +630,11 @@ def transitive_hdrs(name, deps=[], **kwargs):
native
.
filegroup
(
name
=
name
,
srcs
=
[
":"
+
name
+
"_gather"
])
# The following rules and aspects are used to collect the headers of
# the direct dependencies of a target.
def
_collect_hdrs_aspect_impl
(
target
,
ctx
):
allhdrs
=
set
()
for
h
in
getattr
(
ctx
.
rule
.
attr
,
'hdrs'
,
[]):
allhdrs
=
allhdrs
|
h
.
files
return
struct
(
tf_hdrs
=
allhdrs
)
collect_hdrs_aspect
=
aspect
(
implementation
=
_collect_hdrs_aspect_impl
,
attr_aspects
=
[
"deps"
])
def
_exposed_hdrs_impl
(
ctx
):
all_hdrs
=
set
()
for
input_dep
in
ctx
.
attr
.
deps
:
if
not
hasattr
(
input_dep
,
"tf_hdrs"
):
continue
all_hdrs
=
all_hdrs
|
input_dep
.
tf_hdrs
return
struct
(
files
=
all_hdrs
)
_exposed_hdrs_rule
=
rule
(
_exposed_hdrs_impl
,
attrs
=
{
"deps"
:
attr
.
label_list
(
aspects
=
[
collect_hdrs_aspect
],
mandatory
=
True
,
allow_files
=
True
),
}
)
def
_exposed_hdrs
(
name
,
deps
=
[],
**
kwargs
):
_exposed_hdrs_rule
(
name
=
name
+
"_internal"
,
deps
=
deps
)
# Defines a filegroup containing all of the headers exposed by
# each target in 'deps'.
native
.
filegroup
(
name
=
name
,
srcs
=
[
":"
+
name
+
"_internal"
])
# Create a header only library that includes all the headers exported
# by the libraries in deps, and exports only the headers of the direct
# dependencies of entries in 'deps' as a filegroup.
# Create a header only library that includes all the headers exported by
# the libraries in deps.
def
cc_header_only_library
(
name
,
deps
=
[],
**
kwargs
):
_transitive_hdrs
(
name
=
name
+
"_gather"
,
deps
=
deps
)
_exposed_hdrs
(
name
=
name
+
"_headers"
,
deps
=
deps
)
native
.
cc_library
(
name
=
name
,
hdrs
=
[
":"
+
name
+
"_gather"
],
**
kwargs
)
...
...
tensorflow/tools/pip_package/BUILD
浏览文件 @
8a0e81d8
...
...
@@ -5,8 +5,6 @@ package(default_visibility = ["//visibility:private"])
load
(
"//tensorflow:tensorflow.bzl"
,
"transitive_hdrs"
)
# Bring in the eigen3 and generated protobuf headers that are not part
# of the direct framework headers lib.
transitive_hdrs
(
name
=
"other_headers"
,
deps
=
[
...
...
@@ -40,7 +38,7 @@ sh_binary(
"//tensorflow/contrib/specs:all_files"
,
"//tensorflow/contrib/tensor_forest:all_files"
,
"//tensorflow/contrib/tensor_forest/hybrid:all_files"
,
"//tensorflow/core:framework_headers
_lib_headers
"
,
"//tensorflow/core:framework_headers"
,
"//tensorflow/examples/tutorials/mnist:package"
,
"//tensorflow/models/embedding:package"
,
"//tensorflow/models/image/alexnet:all_files"
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录