Add support of Dict as output when connecting script and tracing (#36265)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/36265
Reviewed By: hl475
Differential Revision: D20927160
Pulled By: houseroad
fbshipit-source-id: 5a63022e92d234b97b57d60ef7f7aa3bc41c2d22