ns for fx: fix bug in graph matcher (#69238)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/69238
The NS for FX graph matcher was not properly taking into account
seen_nodes, this allowed a node to be matched twice.
Test Plan:
FB-only testing on real model passes.
Ideally we would have a test case to capture this, but hopefully we can land this soon to unblock production work.
Imported from OSS
Reviewed By: HDCharles
Differential Revision: D32765761
fbshipit-source-id: ed3dff8fd981e399a649fcd406883b4d56cc712a