diff --git a/aten/src/ATen/native/quantized/cpu/qembeddingbag_prepack.cpp b/aten/src/ATen/native/quantized/cpu/qembeddingbag_prepack.cpp index 224a66f..eb42317 100644 --- a/aten/src/ATen/native/quantized/cpu/qembeddingbag_prepack.cpp +++ b/aten/src/ATen/native/quantized/cpu/qembeddingbag_prepack.cpp @@ -8,7 +8,10 @@ #include #include - +#ifdef USE_FBGEMM +#include +#include +#endif int register_embedding_params(); /* diff --git a/aten/src/ATen/native/quantized/cpu/qembeddingbag_unpack.cpp b/aten/src/ATen/native/quantized/cpu/qembeddingbag_unpack.cpp index f94d27b..299b88b 100644 --- a/aten/src/ATen/native/quantized/cpu/qembeddingbag_unpack.cpp +++ b/aten/src/ATen/native/quantized/cpu/qembeddingbag_unpack.cpp @@ -4,7 +4,10 @@ #include #include #include - +#ifdef USE_FBGEMM +#include +#include +#endif int register_embedding_params(); at::Tensor PackedEmbeddingBagWeight::unpack() {