--- id: sod4onnx version: "1.0.0" license: MIT License license_treatment: permissive maintenance: abandoned --- # sod4onnx — Simple model output OP additional tools. License: permissive · Maintenance: abandoned · Downloads: 82.6K/mo ## What it is and what it does sod4onnx is a lightweight utility for modifying ONNX model graphs by removing specified output operations. It provides both a command-line interface and a Python API (the `outputs_delete` function) to accept an ONNX model file or graph object, delete named outputs, and write the result back to disk or return it as a modified graph object. The tool is designed for model optimization workflows where intermediate or unwanted outputs need to be pruned from a trained model before deployment. It has no runtime dependencies beyond Python itself, making installation friction minimal. However, the package has not been maintained since its initial release in September 2022, raising concerns about compatibility with newer ONNX specifications or Python versions. Use it for: - Remove intermediate output layers from ONNX models before deployment to reduce model size or inference overhead. - Prune unnecessary outputs from multi-output models to simplify downstream inference pipelines. - Prepare ONNX models for edge deployment by stripping outputs not needed on target hardware. - Automate ONNX graph cleanup in model conversion pipelines where intermediate outputs are generated but not used. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. sod4onnx removes specified output operations from ONNX model files, either via command-line or Python API, producing a modified ONNX model with those outputs deleted. No. While the tool is simple and has no install friction, it has been abandoned for nearly four years with no maintenance or updates. Compatibility with current ONNX versions is uncertain, and the lack of ongoing support makes it risky for production use. Consider alternatives that are actively maintained if you need reliable ONNX output deletion. ## Install pip install sod4onnx uv add sod4onnx poetry add sod4onnx ## Installing sod4onnx Before you install: Installation is straightforward with no runtime dependencies, but the package has been abandoned since its single release on 2022-09-15 with no subsequent updates or maintenance. License in practice: MIT License permits free use, modification, and distribution with minimal restrictions, making it legally safe to adopt in most projects. Quickstart: pip install -U sod4onnx from sod4onnx import outputs_delete onnx_graph = outputs_delete( input_onnx_file_path="model.onnx", output_op_names=["cast1_output"], output_onnx_file_path="model_modified.onnx" ) Verify before relying: - Whether the package works correctly with current ONNX versions or if API changes have broken compatibility. - Whether onnx_graphsurgeon (listed in the description's install instructions) is a required runtime dependency despite not appearing in the metadata. ## Package facts - License: MIT License (permissive) - Python support: supports_current - Install friction: low - Maintenance: abandoned - Downloads: 82.6K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags onnx model output deletion, remove onnx output ops, onnx graph surgery, onnx model modification, delete onnx outputs, onnx output pruning, onnx model editing, onnx-tools, model-optimization [View on SkillFed](https://skillfed.io/packages/sod4onnx) · [View on PyPI](https://pypi.org/project/sod4onnx/)