xref: /aosp_15_r20/external/pytorch/torch/csrc/jit/passes/frozen_linear_transpose.h (revision da0073e96a02ea20f0ac840b70461e3646d07c45)
1 #pragma once
2 
3 #include <torch/csrc/jit/ir/ir.h>
4 
5 namespace torch::jit {
6 
7 // Transposes the weight matrix for frozen linear modules.
8 // and converts it into a matmul
9 TORCH_API bool FrozenLinearTranspose(std::shared_ptr<Graph>& graph);
10 
11 } // namespace torch::jit
12