Module method destroy (#27111)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/27090
Test Plan: Imported from OSS
Differential Revision: D17674096
Pulled By: IvanKobzarev
fbshipit-source-id: d1c0db3797730bff90db83259a38904e71f7941d