/usr/local/lib64/python3.6/site-packages/torch/include/torch/csrc/jit/passes
Edit: /usr/local/lib64/python3.6/site-packages/torch/include/torch/csrc/jit/passes/peephole.h (507B)
#pragma once
#include
namespace torch {
namespace jit {
// return true if graph is modified
TORCH_API bool PeepholeOptimize(
const std::shared_ptr& graph,
bool disable_shape_peepholes = false);
// return true if graph is modified
TORCH_API bool PeepholeOptimize(
Block* block,
bool disable_shape_peepholes = false);
// return true if graph is modified
TORCH_API bool FuseAddMM(const std::shared_ptr& graph);
} // namespace jit
} // namespace torch