pytorch/caffe2/image
xkszltl 065cd32ed0 Fix ".pb.h" dependency issue about DLL build. (#7027)
* Add missing header "caffe2/core/common.h" before "caffe/proto/caffe.pb.h" to provide CAFFE2_API macro.
This only affects the Windows build since CAFFE2_API is only defined for DLL.

* Fix ".pb.h" dependency issue about DLL build.

CAFFE2_API defined in "caffe2/core/common.h" is required by ".pb.h" generated on Windows for DLL build.
We always need to have "#include <caffe2/core/common.h>" before using any proto header.

In this case "caffe2.pb.h" is already included by "context_gpu.h" -> "common_cudnn.h" in the correct order, hence we simply remove a line.
2018-04-27 21:21:46 -07:00
..
CMakeLists.txt
image_input_op.cc Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
image_input_op.h Fix ".pb.h" dependency issue about DLL build. (#7027) 2018-04-27 21:21:46 -07:00
image_input_op_gpu.cc Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
transform_gpu.cu Remove Apache headers from source. 2018-03-27 13:10:18 -07:00
transform_gpu.h Remove Apache headers from source. 2018-03-27 13:10:18 -07:00