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

Function add_layer_summary

modelzoo/features/runtime/deepfm/train.py:52–55  ·  view source on GitHub ↗
(value, tag)

Source from the content-addressed store, hash-verified

50
51
52def add_layer_summary(value, tag):
53 tf.summary.scalar('%s/fraction_of_zero_values' % tag,
54 tf.nn.zero_fraction(value))
55 tf.summary.histogram('%s/activation' % tag, value)
56
57
58def generate_input_data(filename, batch_size, num_epochs):

Callers 1

dnnMethod · 0.70

Calls 2

histogramMethod · 0.80
scalarMethod · 0.45

Tested by

no test coverage detected