(self, value, tag)
| 110 | |
| 111 | # used to add summary in tensorboard |
| 112 | def _add_layer_summary(self, value, tag): |
| 113 | tf.summary.scalar('%s/fraction_of_zero_values' % tag, |
| 114 | tf.nn.zero_fraction(value)) |
| 115 | tf.summary.histogram('%s/activation' % tag, value) |
| 116 | |
| 117 | def _add_and_norm(self, net_1, net_2, emb_dim, name='add_and_norm'): |
| 118 | with tf.variable_scope(name): |