1 | #pragma once |
---|---|
2 | #include <torch/csrc/jit/api/module.h> |
3 | #include <torch/csrc/jit/ir/ir.h> |
4 | #include <string> |
5 | #include <vector> |
6 | |
7 | namespace torch { |
8 | namespace jit { |
9 | TORCH_API void metalInsertPrePackedOps(std::shared_ptr<Graph>& graph); |
10 | TORCH_API void metalInsertPrePackedOps(script::Module& module); |
11 | TORCH_API void metalFusePrePackedConvWithClamp(script::Module& module); |
12 | TORCH_API void metalFoldPrePackingOps(script::Module& module); |
13 | TORCH_API script::Module metalOptimizeForMobile( |
14 | const script::Module& module, |
15 | const std::vector<std::string>& preserved_methods); |
16 | } // namespace jit |
17 | } // namespace torch |
18 |