Closed Varal7 closed 3 years ago
For saved variables created in a custom autograd function, the direction SavedVariable -> Node is used. (cf. https://github.com/szagoruyko/pytorchviz/blob/master/torchviz/dot.py#L141)
SavedVariable
Node
For the other ones, no direction is used (cf. https://github.com/szagoruyko/pytorchviz/blob/master/torchviz/dot.py#L110 and https://github.com/szagoruyko/pytorchviz/blob/master/torchviz/dot.py#L116)
cc @soulitzer
This is a good catch. We should probably just remove the direction for the custom function case as well, since it's bad for arrows to have multiple meanings in the same graph.
For saved variables created in a custom autograd function, the direction
SavedVariable
->Node
is used. (cf. https://github.com/szagoruyko/pytorchviz/blob/master/torchviz/dot.py#L141)For the other ones, no direction is used (cf. https://github.com/szagoruyko/pytorchviz/blob/master/torchviz/dot.py#L110 and https://github.com/szagoruyko/pytorchviz/blob/master/torchviz/dot.py#L116)