aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/tensorboard/components/tf-event-dashboard/tf-data-coordinator.html
blob: 454dff4a9ef436a9374a9d7ce671c784a0a5deee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<link rel="import" href="../../bower_components/polymer/polymer.html">
<link rel="import" href="../imports/plottable.html">
<link rel="import" href="../imports/lodash.html">

<!--
tf-data-coordinator is a simple plumbing component that takes in a value url generator
(a function that takes a tag and a run and returns a url), and produces an upward-bindable
TF.DataCoordinator for consumption elsewhere.
-->
<dom-module id="tf-data-coordinator">
  <script src="dataCoordinator.js"></script>
  <script src="dataset.js"></script>
  <script>
    Polymer({
      is: "tf-data-coordinator",
      properties: {
        urlGenerator: Object,
        outDataCoordinator: {
          type: Object,
          computed: "getCoordinator(urlGenerator, runToTag)",
          notify: true,
        },
      },
      getCoordinator: function(generator, runToTag) {
        return new TF.DataCoordinator(generator, runToTag);
      }
    });
  </script>
</dom-module>