Files
pytorch/torch/csrc/jit/passes/frozen_linear_transpose.h

12 lines
261 B
C++

#pragma once
#include <torch/csrc/jit/ir/ir.h>
namespace torch::jit {
// Transposes the weight matrix for frozen linear modules.
// and converts it into a matmul
TORCH_API bool FrozenLinearTranspose(std::shared_ptr<Graph>& graph);
} // namespace torch::jit