xref: /aosp_15_r20/external/pytorch/torch/csrc/jit/frontend/canonicalize_modified_loop.h (revision da0073e96a02ea20f0ac840b70461e3646d07c45)
1 #pragma once
2 #include <memory>
3 
4 #include <torch/csrc/Export.h>
5 
6 namespace torch::jit {
7 
8 struct Graph;
9 
10 // Transforms loops so that they can be represented as python
11 // for or while loops
12 TORCH_API void CanonicalizeModifiedLoops(std::shared_ptr<Graph>& graph);
13 
14 } // namespace torch::jit
15