aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/tensorboard/components/tf-graph/tf-graph-params.html
blob: 576816ddd0f34b371ccda4191be4848455c37da5 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<link rel="import" href="../../bower_components/polymer/polymer.html">
<!--
Module for adjusting render graph building parameter.
-->
<dom-module id="tf-graph-params">
</dom-module>
<script>
  Polymer({

    is: 'tf-graph-params',

    properties: {
      // PARAMETERS

      enableExtraction: {
        type: Boolean,
        value: true
      },

      /** Maximum in-degree that a node can have without being considered as
       *  high in-degree node. */
      maxInDegree: {
        type: Number,
        value: 4
      },
      /** Maximum out-degree that a node can have without being considered as
       *  high out-degree node. */
      maxOutDegree: {
        type: Number,
        value: 4
      },
      /** Maximum number of control edges a node can have before they aren't
       *  displayed. */
      maxControlDegree: {
        type: Number,
        value: 4
      },

      /**
       * Types patterns for predefined out-extract nodes, which are
       * sink-like nodes that will be extracted from the main graph.
       */
      outExtractTypes: {
        type: Array,
        value: function() {
          return [
            'NoOp' // for "sgd", "momentum" group
          ];
        }
      },

      /**
       * Types patterns for predefined in-extract nodes, which are
       * source-like nodes that will be extracted from the main graph.
       */
      inExtractTypes: {
        type: Array,
        value: function() {
          return ['Variable'];
        }
      },

      /**
       * When removing edges from a high degree node, remove all of its edges if
       * detachAllEdgesForHighDegree is true.  Otherwise remove all in-edges if
       * the node has high in-degree, or all out-edges if the node has high
       * out-degree.
       */
      detachAllEdgesForHighDegree: {
        type: Boolean,
        value: false
      },

      /**
       * After extracting high in/out degree nodes and predefined
       * source-like/sink-like, extract isolated nodes to the side
       * if this extractIsolatedNodesWithAnnotationsOnOneSide is true.
       */
      extractIsolatedNodesWithAnnotationsOnOneSide: {
        type: Boolean,
        value: true
      },

      /**
       * Whether to draw bridge paths inside of expanded group nodes.
       */
      enableBridgegraph: {
        type: Boolean,
        value: true
      },

      /**
       * Colors for the minimum and maximum values whenever we have a gradient
       * scale.
       */
      minMaxColors: {
        type: Array,
        value: function() {
          return ["#fff5f0", "#fb6a4a"];
        }
      },

      /**
       * Maximum number of annotations to be displayed on a node before an
       * ellipsis is used.
       */
      maxAnnotations: {
        type: Number,
        value: 5
      }
    }
  });
</script>