[ONNX] Track and list model params for scripting (#47348)
Summary:
List model parameters as inputs following freezing script module.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/47348
Reviewed By: heitorschueroff
Differential Revision: D25309756
Pulled By: bzinodev
fbshipit-source-id: cbe679ece934d5e6c418a22f08c1662256914c4c