3 #include <torch/csrc/jit/ir.h> 14 TORCH_API
void EliminateDeadCode(
const std::shared_ptr<Graph>& graph);
15 TORCH_API
void EliminateDeadCode(Block* block,
bool recurse =
true);
18 TORCH_API
void EliminateDeadCode(
20 std::function<
void(
const std::unordered_set<const Value*>&)> cb);