How does one debug NaN values in TensorFlow?

后端 未结 9 1449
遥遥无期
遥遥无期 2020-12-23 09:07

I was running TensorFlow and I happen to have something yielding a NaN. I\'d like to know what it is but I do not know how to do this. The main issue is that in a \"normal\"

9条回答
  •  忘掉有多难
    2020-12-23 09:56

    It look like you can call it after you complete making the graph.

    check = tf.add_check_numerics_ops()

    I think this will add the check for all floating point operations. Then in the sessions run function you can add the check operation.

    sess.run([check, ...])

提交回复
热议问题