Add dict comprehension (#47774)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/47774
Test Plan: Imported from OSS
Reviewed By: pbelevich
Differential Revision: D25615464
Pulled By: ansley
fbshipit-source-id: 10bba6f70e812fa580cbbbf097e93de7142484cc