Preserve module parameters in freezing (#47094)
Summary:
Added preserveParameters to freezing API that allows to preserve module
parameters.
Fixes #{39613}
Pull Request resolved: https://github.com/pytorch/pytorch/pull/47094
Reviewed By: eellison
Differential Revision: D24792867
Pulled By: bzinodev
fbshipit-source-id: f0cd980f5aed617b778afe2f231067c7c30a1527