Correctly unpack constants when used in multi-return output (#82568)
Partial fix for https://github.com/pytorch/pytorch/issues/82547
Signed-off-by: Edward Z. Yang <ezyang@fb.com>
Pull Request resolved: https://github.com/pytorch/pytorch/pull/82568
Approved by: https://github.com/IvanYashchuk, https://github.com/davidberard98