xref: /aosp_15_r20/external/pytorch/torch/csrc/jit/passes/frozen_ops_to_mkldnn.h (revision da0073e96a02ea20f0ac840b70461e3646d07c45)
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