1#pragma once
2
3#include <torch/csrc/jit/ir/ir.h>
4
5namespace torch {
6namespace jit {
7
8// Peephole Optimizes alias sensitive peepholes
9// Currently this is invoked as part of PeepholeOptimize
10// return true if graph is modified
11// Optimizes on TensorType if shape_peepholes is true
12TORCH_API bool PeepholeOptimizeAliasSensitive(
13 const std::shared_ptr<Graph>& graph,
14 bool shape_peepholes);
15
16} // namespace jit
17} // namespace torch
18