Instantiate PackedConvWeight to avoid linking error (#49442)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/49442
When moving Aten/native to app level, symbols from native/quantized may sit in a target away from some of its call sites. As a result, there are linking errors of missing symbols of instantiations of PackedConvWeight::prepack. The solution is to instantiate PackedConvWeight in the same compilation unit. It's similar to D24941989 (https://github.com/pytorch/pytorch/commit/fe6bb2d287ab039127d2443bbb85b6152fc55bc4).
ghstack-source-id: 118676374
Test Plan: CI
Reviewed By: dhruvbird
Differential Revision: D25576703
fbshipit-source-id: d6e3d11d51d8172ab8487ce44ec8c042889f0f11