#pragma once #include namespace torch::jit { // Fuses Linear -> BatchNormNd into a single Linear by // folding batchnorm weights into linear weights. // This pass only works on Frozen Graphs; otherwise it is a No-Op. TORCH_API bool FoldFrozenLinearBatchnorm(std::shared_ptr& graph); } // namespace torch::jit