pytorch
fe6bb2d2 - [PyTorch] Declare the instantiation of PackedConvWeightsQnnp<2>::prepack (#48256)

Commit
4 years ago
[PyTorch] Declare the instantiation of PackedConvWeightsQnnp<2>::prepack (#48256) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/48256 `PackedConvWeightsQnnp<2>::prepack` is referenced by both `quantized::conv_prepack` and fbgemm.cpp. Since `quantized::conv_prepack` is in the same compilation unit as the class template it was fine. However, if we make operator registration selective, the reference from `quantized::conv_prepack` is gone. The reference from fbgemm.cpp is in another compilation unit and there is link error. To avoid the link error, instantiate the symbol in the cpp file. It should also work to move all implementations to .h file, but to keep the existing code structure and to avoid (small chance of) code bloat, the implementations are kept as is. ghstack-source-id: 117123564 Test Plan: CI buck build //fbandroid/apps/oculus/assistant:assistant_arm64_debug Reviewed By: dhruvbird Differential Revision: D24941989 fbshipit-source-id: adc96d0e55c89529fb71a43352aa68a1088a62a2
Author
Parents
Loading