• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #pragma once
2 
3 #include <torch/csrc/jit/api/module.h>
4 #include <torch/csrc/jit/ir/ir.h>
5 
6 namespace torch::jit {
7 
8 using PrePackingOpsFilterFn = std::function<bool(Node*)>;
9 
10 void PrePackingOpsFolder(
11     script::Module& m,
12     const PrePackingOpsFilterFn& is_foldable_op,
13     const std::string& attr_prefix);
14 
15 } // namespace torch::jit
16