Skip to content

Commit

Permalink
Delete TensorBoard Gulp build
Browse files Browse the repository at this point in the history
This CL uses web_library to build all components in the forked d3v4 packages. The tensorboard command now uses the newly vulcanized binary.

This leaves the CMake build for TensorBoard in a partially broken state. We will need to update it to obtain tensorboard/index.html from a web server.

PiperOrigin-RevId: 156369259
  • Loading branch information
jart authored and tensorflower-gardener committed May 17, 2017
1 parent 9d9aa78 commit 52b4d47
Show file tree
Hide file tree
Showing 70 changed files with 858 additions and 29,688 deletions.
500 changes: 23 additions & 477 deletions WORKSPACE

Large diffs are not rendered by default.

645 changes: 0 additions & 645 deletions bower.BUILD

This file was deleted.

4 changes: 2 additions & 2 deletions tensorflow/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,6 @@ filegroup(
"//tensorflow/python/saved_model:all_files",
"//tensorflow/python/tools:all_files",
"//tensorflow/tensorboard:all_files",
"//tensorflow/tensorboard/app:all_files",
"//tensorflow/tensorboard/backend:all_files",
"//tensorflow/tensorboard/backend/event_processing:all_files",
"//tensorflow/tensorboard/components:all_files",
Expand Down Expand Up @@ -404,6 +403,8 @@ filegroup(
"//tensorflow/tensorboard/components/vz_distribution_chart:all_files",
"//tensorflow/tensorboard/components/vz_distribution_chart/demo:all_files",
"//tensorflow/tensorboard/components/vz_distribution_chart_d3v4:all_files",
"//tensorflow/tensorboard/components/vz_heatmap:all_files",
"//tensorflow/tensorboard/components/vz_heatmap_d3v4:all_files",
"//tensorflow/tensorboard/components/vz_histogram_timeseries:all_files",
"//tensorflow/tensorboard/components/vz_histogram_timeseries/demo:all_files",
"//tensorflow/tensorboard/components/vz_histogram_timeseries_d3v4:all_files",
Expand All @@ -419,7 +420,6 @@ filegroup(
"//tensorflow/tensorboard/components/vz_sorting_d3v4/test:all_files",
"//tensorflow/tensorboard/demo:all_files",
"//tensorflow/tensorboard/java/org/tensorflow/tensorboard/vulcanize:all_files",
"//tensorflow/tensorboard/lib:all_files",
"//tensorflow/tensorboard/plugins:all_files",
"//tensorflow/tensorboard/plugins/projector:all_files",
"//tensorflow/tensorboard/plugins/text:all_files",
Expand Down
1 change: 0 additions & 1 deletion tensorflow/contrib/cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,6 @@ if(tensorflow_BUILD_CC_EXAMPLE)
endif()
include(tf_tools.cmake)
if(tensorflow_BUILD_PYTHON_BINDINGS)
include(tensorboard)
include(tf_python.cmake)
endif()
if(tensorflow_BUILD_SHARED_LIB)
Expand Down
148 changes: 0 additions & 148 deletions tensorflow/contrib/cmake/external/tensorboard.cmake

This file was deleted.

25 changes: 1 addition & 24 deletions tensorflow/contrib/cmake/tf_python.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -514,13 +514,6 @@ add_python_module("tensorflow/contrib/training/python/training")
add_python_module("tensorflow/contrib/util")


# Additional directories with no Python sources.
add_custom_command(TARGET tf_python_touchup_modules PRE_BUILD
COMMAND ${CMAKE_COMMAND} -E make_directory "${CMAKE_CURRENT_BINARY_DIR}/tf_python/tensorflow/tensorboard/dist")
add_custom_command(TARGET tf_python_touchup_modules PRE_BUILD
COMMAND ${CMAKE_COMMAND} -E make_directory "${CMAKE_CURRENT_BINARY_DIR}/tf_python/tensorflow/tensorboard/lib/css")


########################################################
# tf_python_op_gen_main library
########################################################
Expand Down Expand Up @@ -859,7 +852,6 @@ endif(WIN32)
add_custom_target(tf_python_build_pip_package)
add_dependencies(tf_python_build_pip_package
pywrap_tensorflow_internal
tensorboard_copy_dependencies
tf_python_copy_scripts_to_destination
tf_python_touchup_modules
tf_python_ops
Expand All @@ -886,24 +878,9 @@ add_custom_command(TARGET tf_python_build_pip_package POST_BUILD
${CMAKE_CURRENT_BINARY_DIR}/tf_python/)

# Copy resources for TensorBoard.
add_custom_command(TARGET tf_python_build_pip_package POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy ${tensorflow_source_dir}/tensorflow/tensorboard/dist/bazel-html-imports.html
${CMAKE_CURRENT_BINARY_DIR}/tf_python/tensorflow/tensorboard/dist/)
add_custom_command(TARGET tf_python_build_pip_package POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy ${tensorflow_source_dir}/tensorflow/tensorboard/dist/index.html
${CMAKE_CURRENT_BINARY_DIR}/tf_python/tensorflow/tensorboard/dist/)
add_custom_command(TARGET tf_python_build_pip_package POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy ${tensorflow_source_dir}/tensorflow/tensorboard/dist/tf-tensorboard.html
${CMAKE_CURRENT_BINARY_DIR}/tf_python/tensorflow/tensorboard/dist/)
add_custom_command(TARGET tf_python_build_pip_package POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy ${tensorflow_source_dir}/tensorflow/tensorboard/lib/css/global.css
${CMAKE_CURRENT_BINARY_DIR}/tf_python/tensorflow/tensorboard/lib/css/)
add_custom_command(TARGET tf_python_build_pip_package POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy ${tensorflow_source_dir}/tensorflow/tensorboard/TAG
${CMAKE_CURRENT_BINARY_DIR}/tf_python/tensorflow/tensorboard/)
add_custom_command(TARGET tf_python_build_pip_package POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_BINARY_DIR}/tensorboard_external
${CMAKE_CURRENT_BINARY_DIR}/tf_python/external)
${CMAKE_CURRENT_BINARY_DIR}/tf_python/tensorflow/tensorboard/)

# Copy datasets for tf.contrib.learn.
add_custom_command(TARGET tf_python_build_pip_package POST_BUILD
Expand Down
3 changes: 0 additions & 3 deletions tensorflow/tensorboard/.bowerrc

This file was deleted.

27 changes: 0 additions & 27 deletions tensorflow/tensorboard/.gitignore

This file was deleted.

50 changes: 16 additions & 34 deletions tensorflow/tensorboard/BUILD
Original file line number Diff line number Diff line change
@@ -1,39 +1,14 @@
# Description:
# TensorBoard, a dashboard for investigating TensorFlow

package(
default_visibility = ["//tensorflow:internal"],
features = [
"-layering_check",
"-parse_headers",
],
)
package(default_visibility = ["//tensorflow:internal"])

licenses(["notice"]) # Apache 2.0

exports_files(["LICENSE"])

load("//tensorflow:tensorflow.bzl", "py_test")

filegroup(
name = "frontend",
srcs = [
"TAG",
"dist/bazel-html-imports.html",
"dist/index.html",
"dist/tf-tensorboard.html",
"//tensorflow/tensorboard/bower",
"//tensorflow/tensorboard/lib:all_files",
],
)

py_binary(
name = "tensorboard",
srcs = [
"__main__.py",
"tensorboard.py",
],
data = [":frontend"],
srcs = ["tensorboard.py"],
data = [":assets"],
srcs_version = "PY2AND3",
deps = [
"//tensorflow/python:platform",
Expand All @@ -45,16 +20,23 @@ py_binary(
],
)

filegroup(
name = "assets",
srcs = [
"TAG",
"//tensorflow/tensorboard/components:index.html",
],
)

filegroup(
name = "all_files",
srcs = glob(
["**/*"],
["**"],
exclude = [
"**/METADATA",
"**/OWNERS",
"**/node_modules/**",
"**/typings/**",
"METADATA",
"OWNERS",
"tensorboard.google.bzl",
],
),
visibility = ["//tensorflow:__subpackages__"],
tags = ["notsan"],
)
Loading

0 comments on commit 52b4d47

Please sign in to comment.