Fix the issue that Bad interaction between no_grad and numpy conversi… (#38906)
Summary:
…on(https://github.com/pytorch/pytorch/issues/37000)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/38906
Differential Revision: D21722033
Pulled By: albanD
fbshipit-source-id: f22aec8106e4546e828aba15be606e9d9f3eeffa