Correct subgraph rewriter pattern containment rules (#51529)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/51529
Test Plan: Imported from OSS
Reviewed By: jamesr66a
Differential Revision: D26192470
Pulled By: ansley
fbshipit-source-id: 6e44f7df1e245835365ec868ae9cc539ecc873f2