MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / _add_layer_summary

Method _add_layer_summary

modelzoo/bst/train.py:112–115  ·  view source on GitHub ↗
(self, value, tag)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 2

histogramMethod · 0.80
scalarMethod · 0.45

Tested by

no test coverage detected