Solved by albanD in post #4 
              
              
                I’m afraid the graph that we create to compute gradients does not store all the intermediary results (only the ones that are required) and they are not easily accessible to the user in general. 
What I mean by binary search is: 

Take the middle of your code
Is the nan already there?
If so, do the s…