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

Method _add_layer_summary

modelzoo/deepfm/train.py:116–119  ·  view source on GitHub ↗
(self, value, tag)

Source from the content-addressed store, hash-verified

114
115 # used to add summary in tensorboard
116 def _add_layer_summary(self, value, tag):
117 tf.summary.scalar('%s/fraction_of_zero_values' % tag,
118 tf.nn.zero_fraction(value))
119 tf.summary.histogram('%s/activation' % tag, value)
120
121 def _dnn(self, dnn_input, dnn_hidden_units=None, layer_name=''):
122 for layer_id, num_hidden_units in enumerate(dnn_hidden_units):

Callers 1

_dnnMethod · 0.95

Calls 2

histogramMethod · 0.80
scalarMethod · 0.45

Tested by

no test coverage detected