xref: /aosp_15_r20/external/pytorch/tools/autograd/templates/Functions.cpp (revision da0073e96a02ea20f0ac840b70461e3646d07c45)
1 #include "torch/csrc/autograd/FunctionsManual.h"
2 #include "torch/csrc/dynamo/compiled_autograd.h"
3 
4 // ${generated_comment}
5 
6 // The manual function definitions that used to be here are now in torch/csrc/autograd/FunctionsManual.cpp
7 // This speeds up re-compilation and allow to share these implementations so that they can be
8 // used for forward mode AD formulas as well.
9 
10 using namespace torch::autograd::generated::details;
11 using at::Tensor;
12 using at::Scalar;
13 using at::IntArrayRef;
14 using at::TensorList;
15 
16 namespace torch::autograd::generated {
17 
18 ${autograd_function_definitions}
19 
20 } // namespace torch::autograd::generated
21