【发布时间】:2020-01-10 18:43:48
【问题描述】:
我在 Eager Execution 中使用 TensorFlow 1.12,并且我想在训练期间检查不同点的梯度值和权重以进行调试。 This answer 使用 TensorBoard 来获得漂亮的权重和梯度分布图,这正是我想要的。但是,当我使用Keras' TensorBoard callback 时,我得到了这个:
WARNING:tensorflow:Weight and gradient histograms not supported for eagerexecution, setting `histogram_freq` to `0`.
换句话说,这与急切执行不兼容。有没有其他方法可以打印梯度和/或权重?大多数非 TensorBoard 的答案似乎都依赖于基于图形的执行。
【问题讨论】:
标签: tensorflow gradient-descent eager-execution