xref: /aosp_15_r20/external/pytorch/torch/csrc/jit/passes/inline_autodiff_subgraphs.h (revision da0073e96a02ea20f0ac840b70461e3646d07c45)
1 #pragma once
2 
3 #include <torch/csrc/jit/ir/ir.h>
4 
5 namespace torch::jit {
6 
7 TORCH_API bool canRunWithAutograd(Node* node);
8 
9 TORCH_API void InlineAutodiffSubgraphs(
10     std::shared_ptr<Graph>& graph,
11     size_t threshold = 5);
12 
13 } // namespace torch::jit
14