diff options
author | Dandelion Mané <dandelion@google.com> | 2017-03-28 14:48:41 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-03-28 16:07:12 -0700 |
commit | 8a6b6f37018f18273d2c37cacdf3219cf297493d (patch) | |
tree | 4e5a6cdf753af22aebf49c5da335503539d94ad3 | |
parent | a091cd1138de28339cd209fcd569fb5ff623da70 (diff) |
Add a text dashboard to TensorBoard.
Change: 151510001
3 files changed, 13 insertions, 2 deletions
diff --git a/tensorflow/tensorboard/components/tf_globals/globals.ts b/tensorflow/tensorboard/components/tf_globals/globals.ts index 33feb26d23..0dcdde8cd3 100644 --- a/tensorflow/tensorboard/components/tf_globals/globals.ts +++ b/tensorflow/tensorboard/components/tf_globals/globals.ts @@ -19,7 +19,7 @@ module TF.Globals { // The names of TensorBoard tabs. export var TABS = [ 'scalars', 'images', 'audio', 'graphs', 'distributions', 'histograms', - 'embeddings' + 'embeddings', 'text' ]; // If true, TensorBoard stores its hash in the URI state. diff --git a/tensorflow/tensorboard/components/tf_tensorboard/tf-tensorboard.html b/tensorflow/tensorboard/components/tf_tensorboard/tf-tensorboard.html index 2df282c053..b5b2e2d5a8 100644 --- a/tensorflow/tensorboard/components/tf_tensorboard/tf-tensorboard.html +++ b/tensorflow/tensorboard/components/tf_tensorboard/tf-tensorboard.html @@ -31,6 +31,7 @@ limitations under the License. <link rel="import" href="../tf-image-dashboard/tf-image-dashboard.html"> <link rel="import" href="../tf-audio-dashboard/tf-audio-dashboard.html"> <link rel="import" href="../tf-graph-dashboard/tf-graph-dashboard.html"> +<link rel="import" href="../tf-text-dashboard/tf-text-dashboard.html"> <link rel="import" href="../tf-dashboard-common/tensorboard-color.html"> <link rel="import" href="../tf-backend/tf-backend.html"> <link rel="import" href="../tf-storage/tf-storage.html"> @@ -134,6 +135,13 @@ allows the user to toggle between various dashboards. route-prefix="/data/plugin/projector"> </vz-projector-dashboard> </template> + + <template is="dom-if" if="[[_modeIsText(mode)]]"> + <tf-text-dashboard + id="text" + backend="[[_backend]]"> + </tf-text-dashboard> + </template> </div> </paper-header-panel> @@ -294,6 +302,9 @@ allows the user to toggle between various dashboards. _modeIsHistograms: function(mode) { return mode === "histograms"; }, + _modeIsText: function(mode) { + return mode === "text"; + }, selectedDashboard: function() { var dashboard = this.$$("#" + this.mode); if (dashboard == null) { diff --git a/tensorflow/tensorboard/plugins/text/text_plugin.py b/tensorflow/tensorboard/plugins/text/text_plugin.py index 60c186db34..a87949877b 100644 --- a/tensorflow/tensorboard/plugins/text/text_plugin.py +++ b/tensorflow/tensorboard/plugins/text/text_plugin.py @@ -35,7 +35,7 @@ from tensorflow.tensorboard.plugins import base_plugin PLUGIN_PREFIX_ROUTE = 'text' # HTTP routes -RUNS_ROUTE = '/index' +RUNS_ROUTE = '/runs' TEXT_ROUTE = '/text' ALLOWED_TAGS = [ |