Don't copy name_to_input in OutputGraph (#93034)
This copy isn't necessary and regressed tracing Adam by ~10s with a 1000 parameter model.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/93034
Approved by: https://github.com/ezyang, https://github.com/jansel