Attach unused parameter info to static graph error message (#68413)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/68413
attach unused parameter info to static graph error message
ghstack-source-id: 143560766
Test Plan: unit tests
Reviewed By: rohan-varma
Differential Revision: D32457112
fbshipit-source-id: 31de859bf5289aa6044279014f0e76be9bcb9e54