Factor out insertPrepackUnpackForLinear (#27239)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/27239
att
Test Plan:
python test/test_jit.py 'TestJit.test_insert_prepack_unpack'
Imported from OSS
Differential Revision: D18182913
fbshipit-source-id: 7cbaac9159520d9e873079d10bf80764f2ec27ae