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