Add specific list of supported types in autograd (#38325)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/38325
Test Plan: Imported from OSS
Differential Revision: D21668739
Pulled By: albanD
fbshipit-source-id: 2e6ebaa36e41a084aed0a8e1e16b6e37e36a1910