【发布时间】:2018-02-13 19:50:23
【问题描述】:
如何在张量板中绘制tf.layers.dense 激活的直方图?考虑以下情况:
with tf.variable_scope('hidden'):
hidden_layer = tf.layers.dense(input, 100, activation=tf.nn.relu)
我可以使用以下代码从hidden 绘制权重和偏差:
for v in tf.get_collection(tf.GraphKeys.TRAINABLE_VARIABLES, scope='hidden'):
tf.summary.histogram("{}/weight_histogram".format(v.name), v)
但是,我似乎也无法获得激活的集合。我该如何修改它以绘制激活的直方图?
【问题讨论】:
标签: python tensorflow tensorboard