1 #pragma once 2 3 #include <torch/csrc/jit/ir/ir.h> 4 5 namespace torch::jit { 6 7 // Converts operators & their parameters to mkldnn if it is profitable 8 // Currently encompassing Conv2d and Conv3d, and Linear 9 // Op must be in float32 and mkldnn must be built 10 // This pass only works on frozen graph 11 TORCH_API void ConvertFrozenOpsToMKLDNN(std::shared_ptr<Graph>& graph); 12 13 } // namespace torch::jit 14