1. 在训练过程中,获取某个参数Tensor的值:

  1. 获取所有Tensor的name: [tensor.name for tensor in tf.get_default_graph().as_graph_def().node]
  2. 根据name获得Tensor: bn_gamma = sess.graph.get_tensor_by_name('bn1_audio/batch_normalization/beta:0')
  3. sess.run(), print

Tensorflow 踩坑记录

2. 只有conv1的filter, bias和bn1的gamma为nan:

  • 由于训练数据中存在nan. 
  • bn1后的max pooling层输出全为0 (∵bn1输出有0), 导致后续参数和输出看起来正常, 但是不会更新.

相关文章:

  • 2021-05-24
  • 2021-11-22
  • 2021-09-28
  • 2021-05-05
  • 2021-08-18
  • 2022-01-20
  • 2021-06-29
猜你喜欢
  • 2022-01-23
  • 2022-01-14
  • 2021-09-21
  • 2021-12-04
  • 2021-06-20
  • 2021-07-22
  • 2021-08-19
相关资源
相似解决方案