xref: /aosp_15_r20/external/pytorch/torch/csrc/jit/runtime/static/fusion.h (revision da0073e96a02ea20f0ac840b70461e3646d07c45)
1 #pragma once
2 
3 #include <torch/csrc/jit/ir/ir.h>
4 
5 namespace torch::jit {
6 
7 TORCH_API void fuseStaticSubgraphs(
8     std::shared_ptr<Graph> graph,
9     size_t min_size);
10 
11 TORCH_API void performTensorExprFusion(
12     std::shared_ptr<Graph> graph,
13     std::vector<IValue> sample_inputs);
14 
15 } // namespace torch::jit
16