How to get weights in tf.layers.dense?

前端 未结 7 697
悲哀的现实
悲哀的现实 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:42

    Is there anything wrong with

    model.get_weights()
    

    After I create a model, compile it and run fit, this function returns a numpy array of the weights for me.

提交回复
热议问题