Minor fix in FX tests with TorchDynamo (#79174)
These tests perform symbolic tracing with FX. When run on top with TorchDynamo, the generated graphs have few extra nodes, which at the can be dead code eliminated.
Another fix could be to figure out the interaction between Dynamo and Fx tracing, and why the extra nodes are generated.
Asking for comments @jansel
Pull Request resolved: https://github.com/pytorch/pytorch/pull/79174
Approved by: https://github.com/jansel