Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/61146
Track predecessors of nodes in DiGraph in order to enable cleaner dependency visualization code.
Test Plan: Imported from OSS
Reviewed By: suo
Differential Revision: D29559682
Pulled By: Lilyjjo
fbshipit-source-id: 06f51b1108423aece5bdd72a7b82ab736e5e4f94
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/57337
Add a really simple graph data sturcutre for tracking dependencies. API
based on networkx, but I didn't want to require the dependency.
Differential Revision: D28114186
Test Plan: Imported from OSS
Reviewed By: VitalyFedyunin
Pulled By: suo
fbshipit-source-id: 802fd067017e493a48d6672538080e61d249accd