Title: I&#x27;m a machine learning engineer and researcher. I got fed up with how difficult it is to understand why neural networks behave the way they do, so i wrote a library to help with it.<p>Comgra (computation graph analysis) is a library you can use with pytorch to extract all the tensor data you care about and visualize it graphically in a browser.<p>This allows for a much more detailed analysis of what is happening than the usual approach of using tensorboard. You can go investigate tensors as training proceeds, drill down into individual neurons, inspect single data sets that are of special interest to you, track gradients, compare statistics between different training runs, and more.<p>This tool has saved me a ton of time in my research by letting me check my hypotheses much more quickly than normal and by helping me understand how the different parts of my network really interact.<p>I hope this tool can save other people just as much time as it did me. I&#x27;m also open for suggestions on how to improve it further: Since I&#x27;m already gathering and visualizing a lot of network information, adding more automated analysis would not be much extra work.
Upvote: