1 #pragma once 2 3 #include <torch/csrc/jit/ir/ir.h> 4 5 namespace torch::jit { 6 7 // return true if graph is modified 8 // Optimizing General Graph Patterns that 9 // are not covered in peephole.cpp and peephole_list_idioms 10 TORCH_API bool PeepholeOptimizeNonTensor(const std::shared_ptr<Graph>& graph); 11 12 } // namespace torch::jit 13