mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
1. Reduce cpp_wrapper un-used header files. 2. Clean pch cache, when use_pch is False. The first change will reduce the build time from 7.35s to 4.94s. Before change:  After change:  Pull Request resolved: https://github.com/pytorch/pytorch/pull/107585 Approved by: https://github.com/ezyang, https://github.com/jansel, https://github.com/jgong5
10 lines
213 B
C
10 lines
213 B
C
#pragma once
|
|
|
|
#ifndef TORCH_INDUCTOR_CPP_WRAPPER
|
|
// All pure C++ headers for the C++ frontend.
|
|
#include <torch/all.h>
|
|
#endif
|
|
|
|
// Python bindings for the C++ frontend (includes Python.h).
|
|
#include <torch/python.h>
|