From c2a754c58b0ff15abe4d16441118f88ceb2352c6 Mon Sep 17 00:00:00 2001 From: TerryTsao Date: Tue, 11 Dec 2018 10:41:37 -0800 Subject: [PATCH] Fix CMakeLists.txt for Int8 python bindings (#15047) Summary: Currently in caffe2, one cannot properly fetch the content of Int8 blobs. Upon digging the source code, it turns out that the relevant source code is not being compiled. Adding the source to CMakeLists.txt fixes this issue. First time ever doing a pull request. Please let me know if there's any rule I should follow. Thanks. Pull Request resolved: https://github.com/pytorch/pytorch/pull/15047 Differential Revision: D13417583 Pulled By: bddppq fbshipit-source-id: dd39575971a3012635edbf97a045d80e4b62a8eb --- caffe2/python/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/caffe2/python/CMakeLists.txt b/caffe2/python/CMakeLists.txt index 70125aa..ee910e8 100644 --- a/caffe2/python/CMakeLists.txt +++ b/caffe2/python/CMakeLists.txt @@ -4,6 +4,7 @@ set(Caffe2_CPU_PYTHON_SRCS "/pybind_state_dlpack.cc" "/pybind_state_nomni.cc" "/pybind_state_registry.cc" + "/pybind_state_int8.cc" ) if(CAFFE2_USE_MKLDNN) -- 2.7.4