xref: /aosp_15_r20/external/pytorch/torch/csrc/jit/passes/requires_grad_analysis.h (revision da0073e96a02ea20f0ac840b70461e3646d07c45)
1 #pragma once
2 
3 #include <torch/csrc/Export.h>
4 
5 #include <memory>
6 
7 namespace torch::jit {
8 
9 struct Graph;
10 struct ArgumentSpec;
11 
12 TORCH_API void PropagateRequiresGrad(std::shared_ptr<Graph>& graph);
13 
14 } // namespace torch::jit
15