forked from pytorch/pytorch
-
Notifications
You must be signed in to change notification settings - Fork 1
How Build works ?
Prasun Anand edited this page Sep 24, 2019
·
2 revisions
- Installs Caffe2 header files (this has nothing to do with code generation)
- Configures caffe2/core/macros.h
- Creates an ATen target for its generated C++ files and adds it as a dependency
- Caffe2CmakeLists.txt This file does all the important stuff for codegen and build setup. Example: https://github.com/pytorch/pytorch/blob/3f72bcfcaacadfbbfb40e1cc32fc15fdec26bca5/caffe2/CMakeLists.txt#L299
This line generates all the Python bindings for templates.