xref: /aosp_15_r20/external/pytorch/torch/csrc/jit/passes/onnx/eliminate_unused_items.h (revision da0073e96a02ea20f0ac840b70461e3646d07c45)
1 #pragma once
2 
3 #include <torch/csrc/jit/ir/ir.h>
4 
5 namespace torch::jit {
6 
7 // EliminateUnusedItemsONNX pass is removing unused
8 // initializers and inputs, this is needed because
9 // dce pass is only removing unused fork inputs
10 void EliminateUnusedItemsONNX(
11     Block* b,
12     std::map<std::string, IValue>& paramDict);
13 
14 } // namespace torch::jit
15