1 | #pragma once |
---|---|
2 | |
3 | #include <torch/csrc/jit/api/module.h> |
4 | #include <torch/csrc/jit/ir/ir.h> |
5 | |
6 | namespace torch { |
7 | namespace jit { |
8 | |
9 | using PrePackingOpsFilterFn = std::function<bool(Node*)>; |
10 | |
11 | void 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 |