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

Method _add_layer_summary

modelzoo/ple/train.py:166–169  ·  view source on GitHub ↗
(self, value, tag)

Source from the content-addressed store, hash-verified

164
165 # used to add summary in tensorboard
166 def _add_layer_summary(self, value, tag):
167 tf.summary.scalar('%s/fraction_of_zero_values' % tag,
168 tf.nn.zero_fraction(value))
169 tf.summary.histogram('%s/activation' % tag, value)
170
171 def _make_scope(self, name, bf16, part):
172 if(bf16):

Callers 2

_dnnMethod · 0.95
_create_modelMethod · 0.95

Calls 2

histogramMethod · 0.80
scalarMethod · 0.45

Tested by

no test coverage detected