fix graph deepcopy to propagate output type (#61747)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/61747
Test Plan: Imported from OSS
Reviewed By: jamesr66a
Differential Revision: D29737565
Pulled By: migeed-z
fbshipit-source-id: 8583f0c87f2db27695e062f59a15de77f3b00fd6