C++ parity, convert_parameters (#29267)
Summary:
yf225 https://github.com/pytorch/pytorch/issues/25883
update parameters_to_vector and vector_to_parameters
check please!
Pull Request resolved: https://github.com/pytorch/pytorch/pull/29267
Differential Revision: D18628571
Pulled By: yf225
fbshipit-source-id: 03783e6b0f8183dd97ae48f3da4acb1d07083555