@pecey Did you have any luck with this issue?
I am also trying to get a graph visualisation for arbitrary Pytorch code/functions. To me, it seems that add_graph() requires a model as an input. I am using torch for autograd functionality without DL. Is it possible to get a computational graph like in TF?