PyCharm IDE, similarly to Matlab, offers use of breakpoints which I really like for development.
When I build a nn and train it using tf estimator (tf.contrib.learn.estimator, with input_fn for features/labels dictionaries), when I add breakpoints the code stops in them only in a first run, that seems like a first 'initialization' of the nn, and this helps verify sizes; however afterwards, during training/evaluation, these are ignored.
Two Q's:
1. Is there a way to do stop in breakpoints during the training, so I can see, for example, how the weights and loss make progress? I have a NaN loss and try to figure why, this could be helpful.
2. What is actually the reason for this initial run?
Thanks for your time!
tfdbg [https://www.tensorflow.org/programmers_guide/debugger ] will do?
--
You received this message because you are subscribed to the Google Groups "Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss+unsubscribe@tensorflow.org.
To post to this group, send email to dis...@tensorflow.org.
To view this discussion on the web visit https://groups.google.com/a/tensorflow.org/d/msgid/discuss/f29df6e8-2440-4ac5-bcb2-ee7db9be7693%40tensorflow.org.
Actually, https://github.com/tensorflow/tensorflow/blob/r1.1/tensorflow/python/debug/examples/debug_tflearn_iris.py seems to be quite relevant to your question :-)
Actually, https://github.com/tensorflow/tensorflow/blob/r1.1/tensorflow/python/debug/examples/debug_tflearn_iris.py seems to be quite relevant to your question :-)
On May 8, 2017 8:46 AM, "Igor Pechersky" <igor.pe...@gmail.com> wrote:
tfdbg [https://www.tensorflow.org/programmers_guide/debugger ] will do?
On May 8, 2017 7:57 AM, "Roy" <roy.fren...@gmail.com> wrote:
One may debug tf by printing output or by tf.summary.
PyCharm IDE, similarly to Matlab, offers use of breakpoints which I really like for development.
When I build a nn and train it using tf estimator (tf.contrib.learn.estimator, with input_fn for features/labels dictionaries), when I add breakpoints the code stops in them only in a first run, that seems like a first 'initialization' of the nn, and this helps verify sizes; however afterwards, during training/evaluation, these are ignored.
Two Q's:
1. Is there a way to do stop in breakpoints during the training, so I can see, for example, how the weights and loss make progress? I have a NaN loss and try to figure why, this could be helpful.
2. What is actually the reason for this initial run?
Thanks for your time!
--
You received this message because you are subscribed to the Google Groups "Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss+u...@tensorflow.org.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss+unsubscribe@tensorflow.org.
To view this discussion on the web visit https://groups.google.com/a/tensorflow.org/d/msgid/discuss/c9f7acbc-02a8-45c2-8dd0-f2b700da3fb8%40tensorflow.org.
from tensorflow.python import debug as tf_debug
...
debug_hook = tf_debug.LocalCLIDebugHook(ui_type="curses")
debug_hook.add_tensor_filter("has_inf_or_nan", tf_debug.has_inf_or_nan)
hooks = [debug_hook]Estimator.fit(input_fn=..., monitors=hooks)
To view this discussion on the web visit https://groups.google.com/a/tensorflow.org/d/msgid/discuss/c9f7acbc-02a8-45c2-8dd0-f2b700da3fb8%40tensorflow.org.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss+unsubscribe@tensorflow.org.
To view this discussion on the web visit https://groups.google.com/a/tensorflow.org/d/msgid/discuss/549da353-c9c3-4373-8208-fb4b92e04bde%40tensorflow.org.
Thanks Martin, I'll try that,
However is this a cause for tfdbg not stopping on nan?
--
You received this message because you are subscribed to the Google Groups "Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss+unsubscribe@tensorflow.org.
To post to this group, send email to dis...@tensorflow.org.
To view this discussion on the web visit https://groups.google.com/a/tensorflow.org/d/msgid/discuss/e8602e00-36ea-44e5-8c9a-72dbefb5a2aa%40tensorflow.org.
To view this discussion on the web visit https://groups.google.com/a/tensorflow.org/d/msgid/discuss/549da353-c9c3-4373-8208-fb4b92e04bde%40tensorflow.org.