How to get weights in tf.layers.dense?

前端 未结 7 726
悲哀的现实
悲哀的现实 2020-12-29 07:25

I wanna draw the weights of tf.layers.dense in tensorboard histogram, but it not show in the parameter, how could I do that?

7条回答
  •  星月不相逢
    2020-12-29 07:49

    I am going crazy with tensorflow.

    I run this:

    sess.run(x.kernel)

    after training, and I get the weights.

    Comes from the properties described here.

    I am saying that I am going crazy because it seems that there are a million slightly different ways to do something in tf, and that fragments the tutorials around.

提交回复
热议问题