Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
tensorflow
提交
5d56ddbe
T
tensorflow
项目概览
xxadev
/
tensorflow
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
1
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,发现更多精彩内容 >>
提交
5d56ddbe
编写于
2月 03, 2017
作者:
J
Justine Tunney
提交者:
gunan
2月 06, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
TensorBoard: Migrate vz_{sorting,line_chart} to webfiles
Change: 146535501
上级
8dc43a36
变更
21
展开全部
隐藏空白更改
内联
并排
Showing
21 changed file
with
1918 addition
and
11 deletion
+1918
-11
WORKSPACE
WORKSPACE
+15
-1
tensorflow/BUILD
tensorflow/BUILD
+4
-0
tensorflow/tensorboard/bower/BUILD
tensorflow/tensorboard/bower/BUILD
+1
-1
tensorflow/tensorboard/components/tf_imports/BUILD
tensorflow/tensorboard/components/tf_imports/BUILD
+57
-0
tensorflow/tensorboard/components/tf_imports/d3.html
tensorflow/tensorboard/components/tf_imports/d3.html
+1
-1
tensorflow/tensorboard/components/tf_imports/dagre.html
tensorflow/tensorboard/components/tf_imports/dagre.html
+3
-3
tensorflow/tensorboard/components/tf_imports/graphlib.html
tensorflow/tensorboard/components/tf_imports/graphlib.html
+2
-2
tensorflow/tensorboard/components/tf_imports/lodash.html
tensorflow/tensorboard/components/tf_imports/lodash.html
+1
-1
tensorflow/tensorboard/components/tf_imports/plottable.html
tensorflow/tensorboard/components/tf_imports/plottable.html
+2
-2
tensorflow/tensorboard/components/tf_imports_google/README.md
...orflow/tensorboard/components/tf_imports_google/README.md
+3
-0
tensorflow/tensorboard/components/tf_imports_google/d3.html
tensorflow/tensorboard/components/tf_imports_google/d3.html
+18
-0
tensorflow/tensorboard/components/tf_imports_google/dagre.html
...rflow/tensorboard/components/tf_imports_google/dagre.html
+18
-0
tensorflow/tensorboard/components/tf_imports_google/graphlib.html
...ow/tensorboard/components/tf_imports_google/graphlib.html
+18
-0
tensorflow/tensorboard/components/tf_imports_google/lodash.html
...flow/tensorboard/components/tf_imports_google/lodash.html
+18
-0
tensorflow/tensorboard/components/tf_imports_google/plottable.html
...w/tensorboard/components/tf_imports_google/plottable.html
+19
-0
tensorflow/tensorboard/components/vz_line_chart/BUILD
tensorflow/tensorboard/components/vz_line_chart/BUILD
+71
-0
tensorflow/tensorboard/components/vz_line_chart/demo/BUILD
tensorflow/tensorboard/components/vz_line_chart/demo/BUILD
+24
-0
tensorflow/tensorboard/components/vz_sorting/BUILD
tensorflow/tensorboard/components/vz_sorting/BUILD
+48
-0
tensorflow/tensorboard/components/vz_sorting/test/BUILD
tensorflow/tensorboard/components/vz_sorting/test/BUILD
+35
-0
tensorflow/tensorboard/defs.bzl
tensorflow/tensorboard/defs.bzl
+55
-0
tensorflow/workspace.bzl
tensorflow/workspace.bzl
+1505
-0
未找到文件。
WORKSPACE
浏览文件 @
5d56ddbe
workspace
(
name
=
"org_tensorflow"
)
http_archive
(
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"
,
],
)
load
(
"@io_bazel_rules_closure//closure:defs.bzl"
,
"closure_repositories"
)
closure_repositories
()
load
(
"//tensorflow:workspace.bzl"
,
"check_version"
,
"tf_workspace"
)
# We must check the bazel version before trying to parse any other BUILD files,
...
...
@@ -466,7 +480,7 @@ new_http_archive(
)
new_http_archive
(
name
=
"polymer"
,
name
=
"polymer
_archive
"
,
build_file
=
"bower.BUILD"
,
url
=
"https://github.com/polymer/polymer/archive/v1.7.0.tar.gz"
,
strip_prefix
=
"polymer-1.7.0"
,
...
...
tensorflow/BUILD
浏览文件 @
5d56ddbe
...
...
@@ -227,7 +227,11 @@ filegroup(
"//tensorflow/tensorboard/backend:all_files"
,
"//tensorflow/tensorboard/components:all_files"
,
"//tensorflow/tensorboard/components/vz_data_summary:all_files"
,
"//tensorflow/tensorboard/components/vz_line_chart:all_files"
,
"//tensorflow/tensorboard/components/vz_line_chart/demo:all_files"
,
"//tensorflow/tensorboard/components/vz_projector:all_files"
,
"//tensorflow/tensorboard/components/vz_sorting:all_files"
,
"//tensorflow/tensorboard/components/vz_sorting/test:all_files"
,
"//tensorflow/tensorboard/lib:all_files"
,
"//tensorflow/tensorboard/lib/python:all_files"
,
"//tensorflow/tensorboard/scripts:all_files"
,
...
...
tensorflow/tensorboard/bower/BUILD
浏览文件 @
5d56ddbe
...
...
@@ -65,7 +65,7 @@ filegroup(
"@paper_toolbar//:paper_toolbar"
,
"@paper_tooltip//:paper_tooltip"
,
"@plottable//:plottable"
,
"@polymer//:polymer"
,
"@polymer
_archive
//:polymer"
,
"@promise_polyfill//:promise_polyfill"
,
"@three_js_orbitcontrols_js//file"
,
"@three_js_three_min_js//file"
,
...
...
tensorflow/tensorboard/components/tf_imports/BUILD
0 → 100644
浏览文件 @
5d56ddbe
package
(
default_visibility
=
[
"//tensorflow:internal"
])
load
(
"@io_bazel_rules_closure//closure:defs.bzl"
,
"webfiles"
)
licenses
([
"notice"
])
# Apache 2.0
webfiles
(
name
=
"d3"
,
srcs
=
[
"d3.html"
,
"@org_d3js"
,
],
path
=
"/tf-imports"
,
)
webfiles
(
name
=
"lodash"
,
srcs
=
[
"lodash.html"
,
"@com_lodash"
,
],
path
=
"/tf-imports"
,
)
webfiles
(
name
=
"graphlib"
,
srcs
=
[
"graphlib.html"
,
"@io_github_cpettitt_graphlib"
,
],
path
=
"/tf-imports"
,
deps
=
[
":lodash"
],
)
webfiles
(
name
=
"dagre"
,
srcs
=
[
"dagre.html"
,
"@io_github_cpettitt_dagre"
,
],
path
=
"/tf-imports"
,
deps
=
[
":graphlib"
,
":lodash"
,
],
)
webfiles
(
name
=
"plottable"
,
srcs
=
[
"plottable.html"
,
"@com_palantir_plottable//:plottable.css"
,
"@com_palantir_plottable//:plottable.js"
,
],
path
=
"/tf-imports"
,
deps
=
[
":d3"
],
)
tensorflow/tensorboard/components/tf_imports/d3.html
浏览文件 @
5d56ddbe
...
...
@@ -15,4 +15,4 @@ See the License for the specific language governing permissions and
limitations under the License.
-->
<script
src=
"
../d3/
d3.js"
></script>
<script
src=
"d3.js"
></script>
tensorflow/tensorboard/components/tf_imports/dagre.html
浏览文件 @
5d56ddbe
...
...
@@ -19,6 +19,6 @@ limitations under the License.
HTML imports are non-blocking thus getting the dependency 'graphlib'
and 'lodash' via script imports instead.
-->
<script
src=
"
../lodash/lodash.min
.js"
></script>
<script
src=
"
../graphlib/dist/
graphlib.core.js"
></script>
<script
src=
"
../dagre/dist/
dagre.core.js"
></script>
<script
src=
"
lodash
.js"
></script>
<script
src=
"graphlib.core.js"
></script>
<script
src=
"dagre.core.js"
></script>
tensorflow/tensorboard/components/tf_imports/graphlib.html
浏览文件 @
5d56ddbe
...
...
@@ -15,5 +15,5 @@ See the License for the specific language governing permissions and
limitations under the License.
-->
<script
src=
"
../lodash/lodash.min
.js"
></script>
<script
src=
"
../graphlib/dist/
graphlib.core.js"
></script>
<script
src=
"
lodash
.js"
></script>
<script
src=
"graphlib.core.js"
></script>
tensorflow/tensorboard/components/tf_imports/lodash.html
浏览文件 @
5d56ddbe
...
...
@@ -15,4 +15,4 @@ See the License for the specific language governing permissions and
limitations under the License.
-->
<script
src=
"
../lodash/lodash.min
.js"
></script>
<script
src=
"
lodash
.js"
></script>
tensorflow/tensorboard/components/tf_imports/plottable.html
浏览文件 @
5d56ddbe
...
...
@@ -16,5 +16,5 @@ limitations under the License.
-->
<link
rel=
"import"
href=
"d3.html"
>
<script
src=
"
../plottable/
plottable.js"
></script>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"
../plottable/
plottable.css"
>
<script
src=
"plottable.js"
></script>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"plottable.css"
>
tensorflow/tensorboard/components/tf_imports_google/README.md
0 → 100644
浏览文件 @
5d56ddbe
This file acts as import routers for third party javascript libraries,
e.g. Plottable and D3 from
`g3/third_party`
; it exists to facilitate development
inside google.
tensorflow/tensorboard/components/tf_imports_google/d3.html
0 → 100644
浏览文件 @
5d56ddbe
<!--
@license
Copyright 2016 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<script
src=
"../d3-library/d3.js"
></script>
tensorflow/tensorboard/components/tf_imports_google/dagre.html
0 → 100644
浏览文件 @
5d56ddbe
<!--
@license
Copyright 2016 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<link
rel=
"import"
href=
"../dagre-library/dagre.html"
>
tensorflow/tensorboard/components/tf_imports_google/graphlib.html
0 → 100644
浏览文件 @
5d56ddbe
<!--
@license
Copyright 2016 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<link
rel=
"import"
href=
"../graphlib-library/graphlib.html"
>
tensorflow/tensorboard/components/tf_imports_google/lodash.html
0 → 100644
浏览文件 @
5d56ddbe
<!--
@license
Copyright 2016 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<link
rel=
"import"
href=
"../lodash-library/lodash-library.html"
>
tensorflow/tensorboard/components/tf_imports_google/plottable.html
0 → 100644
浏览文件 @
5d56ddbe
<!--
@license
Copyright 2016 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<link
rel=
"import"
href=
"d3.html"
>
<link
rel=
"import"
href=
"../plottable-library/plottable.html"
>
tensorflow/tensorboard/components/vz_line_chart/BUILD
0 → 100644
浏览文件 @
5d56ddbe
package
(
default_visibility
=
[
"//tensorflow:internal"
])
load
(
"@io_bazel_rules_closure//closure:defs.bzl"
,
"webfiles"
)
load
(
"//tensorflow/tensorboard:defs.bzl"
,
"tensorboard_ts_library"
)
load
(
"//tensorflow/tensorboard:defs.bzl"
,
"tensorboard_typescript_genrule"
)
load
(
"//tensorflow/tensorboard:defs.bzl"
,
"tensorboard_webcomponent_library"
)
licenses
([
"notice"
])
# Apache 2.0
webfiles
(
name
=
"vz_line_chart"
,
srcs
=
[
"vz-line-chart.html"
,
":ts"
,
],
path
=
"/vz-line-chart"
,
deps
=
[
"//tensorflow/tensorboard/components/tf_imports:lodash"
,
"//tensorflow/tensorboard/components/tf_imports:plottable"
,
"@org_polymer"
,
],
)
tensorboard_typescript_genrule
(
name
=
"ts"
,
srcs
=
[
"dragZoomInteraction.ts"
,
"vz-chart-helpers.ts"
,
"vz-line-chart.ts"
,
],
typings
=
[
"@org_definitelytyped//:d3.d.ts"
,
"@com_palantir_plottable//:plottable.d.ts"
,
"@org_definitelytyped//:lodash.d.ts"
,
],
)
filegroup
(
name
=
"all_files"
,
srcs
=
glob
([
"**"
]),
tags
=
[
"notsan"
],
)
################################################################################
# MARKED FOR DELETION
tensorboard_webcomponent_library
(
name
=
"legacy"
,
srcs
=
[
"index.html"
,
"vz-line-chart.html"
,
":legacy_ts"
,
],
visibility
=
[
"//visibility:public"
],
destdir
=
"vz-line-chart"
,
deps
=
[
"//tensorflow/tensorboard/components:tf_imports"
,
"//tensorflow/tensorboard/components/vz_sorting:legacy"
,
"//third_party/javascript/polymer/v1/polymer:lib"
,
],
)
tensorboard_ts_library
(
name
=
"legacy_ts"
,
srcs
=
[
"dragZoomInteraction.ts"
,
"vz-chart-helpers.ts"
,
"vz-line-chart.ts"
,
],
deps
=
[
"//tensorflow/tensorboard/components:common_deps"
],
)
tensorflow/tensorboard/components/vz_line_chart/demo/BUILD
0 → 100644
浏览文件 @
5d56ddbe
package
(
default_visibility
=
[
"//tensorflow:internal"
])
load
(
"@io_bazel_rules_closure//closure:defs.bzl"
,
"webfiles"
)
licenses
([
"notice"
])
# Apache 2.0
# bazel run //third_party/tensorflow/tensorboard/components/vz_line_chart/demo
webfiles
(
name
=
"demo"
,
srcs
=
[
"index.html"
],
path
=
"/vz-line-chart/demo"
,
deps
=
[
"//tensorflow/tensorboard/components/vz_line_chart"
,
"@org_polymer_iron_demo_helpers"
,
"@org_polymer_paper_styles"
,
"@org_polymer_webcomponentsjs"
,
],
)
filegroup
(
name
=
"all_files"
,
srcs
=
glob
([
"**"
]),
tags
=
[
"notsan"
],
)
tensorflow/tensorboard/components/vz_sorting/BUILD
0 → 100644
浏览文件 @
5d56ddbe
package
(
default_visibility
=
[
"//tensorflow:internal"
])
load
(
"@io_bazel_rules_closure//closure:defs.bzl"
,
"webfiles"
)
load
(
"//tensorflow/tensorboard:defs.bzl"
,
"tensorboard_ts_library"
)
load
(
"//tensorflow/tensorboard:defs.bzl"
,
"tensorboard_typescript_genrule"
)
load
(
"//tensorflow/tensorboard:defs.bzl"
,
"tensorboard_webcomponent_library"
)
licenses
([
"notice"
])
# Apache 2.0
webfiles
(
name
=
"vz_sorting"
,
srcs
=
[
"vz-sorting.html"
,
":ts"
,
],
path
=
"/vz-sorting"
,
visibility
=
[
"//visibility:public"
],
)
tensorboard_typescript_genrule
(
name
=
"ts"
,
srcs
=
[
"sorting.ts"
],
)
filegroup
(
name
=
"all_files"
,
srcs
=
glob
([
"**"
]),
tags
=
[
"notsan"
],
)
################################################################################
# MARKED FOR DELETION
tensorboard_webcomponent_library
(
name
=
"legacy"
,
srcs
=
[
"vz-sorting.html"
,
":legacy_ts"
,
],
visibility
=
[
"//visibility:public"
],
destdir
=
"vz-sorting"
,
)
tensorboard_ts_library
(
name
=
"legacy_ts"
,
srcs
=
[
"sorting.ts"
],
deps
=
[
"//tensorflow/tensorboard/components:common_deps"
],
)
tensorflow/tensorboard/components/vz_sorting/test/BUILD
0 → 100644
浏览文件 @
5d56ddbe
package
(
default_visibility
=
[
"//tensorflow:internal"
])
load
(
"//tensorflow/tensorboard:defs.bzl"
,
"tensorboard_ts_library"
)
load
(
"//tensorflow/tensorboard:defs.bzl"
,
"tensorboard_wct_test_suite"
)
licenses
([
"notice"
])
# Apache 2.0
filegroup
(
name
=
"all_files"
,
srcs
=
glob
([
"**"
]),
tags
=
[
"notsan"
],
)
################################################################################
# MARKED FOR DELETION
tensorboard_wct_test_suite
(
name
=
"legacy_test"
,
size
=
"medium"
,
srcs
=
[
"index.html"
],
deps
=
[
"//tensorflow/tensorboard/components/vz_sorting:legacy"
,
"//third_party/javascript/polymer/v1/webcomponentsjs:lib"
,
],
)
tensorboard_ts_library
(
name
=
"legacy_ts"
,
testonly
=
1
,
srcs
=
[
"sortingTests.ts"
],
deps
=
[
"//tensorflow/tensorboard/components:common_deps"
,
"//tensorflow/tensorboard/components/vz_sorting:legacy_ts"
,
],
)
tensorflow/tensorboard/defs.bzl
0 → 100644
浏览文件 @
5d56ddbe
# Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
_DEFAULT_TYPINGS
=
[
"@com_microsoft_typescript//:lib.es6.d.ts"
,
]
def
tensorboard_typescript_genrule
(
name
,
srcs
,
typings
=
[],
**
kwargs
):
"""Filegroup of compiled TypeScript sources.
This is a very unsophisticated TypeScript rule where the user is responsible
for passing all typings and sources via srcs. It's meant as a stopgap because
TypeScript rules currently don't exist for Bazel. The definition of this rule
will need to evolve as more ts_library rules are migrated.
"""
for
src
in
srcs
:
if
(
src
.
startswith
(
"/"
)
or
src
.
endswith
(
".d.ts"
)
or
not
src
.
endswith
(
".ts"
)):
fail
(
"srcs must be typescript sources in same package"
)
native
.
genrule
(
name
=
name
,
srcs
=
_DEFAULT_TYPINGS
+
typings
+
srcs
,
outs
=
[
src
[:
-
3
]
+
".js"
for
src
in
srcs
],
cmd
=
"$(location @com_microsoft_typescript//:tsc)"
+
" --inlineSourceMap"
+
" --inlineSources"
+
" --outDir $(@D)"
+
" $(SRCS)"
,
tools
=
[
"@com_microsoft_typescript//:tsc"
],
**
kwargs
)
def
tensorboard_ts_library
(
**
kwargs
):
"""Rules referencing this will be deleted from the codebase soon."""
pass
def
tensorboard_webcomponent_library
(
**
kwargs
):
"""Rules referencing this will be deleted from the codebase soon."""
pass
def
tensorboard_wct_test_suite
(
**
kwargs
):
"""Rules referencing this will be deleted from the codebase soon."""
pass
tensorflow/workspace.bzl
浏览文件 @
5d56ddbe
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录