Improve binary size of function schema inference (#26860)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/26860
This improves libtorch.so size by 100-200kb
ghstack-source-id: 90842815
Test Plan: measure libtorch.so size
Differential Revision: D17593224
fbshipit-source-id: effbb5f3b7690b67edaabacf2ff9292a73c991a4