RemoveUnusedOpsetsPass¶
- class onnx_ir.passes.common.RemoveUnusedOpsetsPass(process_functions=True)[source]¶
Remove unused opset imports from the model and functions.
- Parameters:
process_functions (bool)
- process_functions¶
Whether to process functions in the model. If True, the pass will remove unused opset imports from functions as well. If False, only the main graph will be processed.