--- id: soc4onnx version: "1.0.2" license: MIT License license_treatment: permissive maintenance: abandoned --- # soc4onnx — A very simple tool that forces a change in the opset of an ONNX graph. Simple Opset Changer for ONNX. License: permissive · Maintenance: abandoned · Downloads: 82.7K/mo ## What it is and what it does soc4onnx is a lightweight utility for modifying the opset version declared in an ONNX model file. ONNX models specify an opset version that indicates which operators and semantics they conform to; this tool allows you to change that version number in the model metadata without restructuring the graph itself. It works both as a command-line tool (taking input and output file paths plus a target opset number) and as a Python library (accepting either file paths or in-memory ONNX ModelProto objects). The package has no runtime dependencies beyond ONNX itself, making it lightweight to install. However, it has been abandoned since September 2022 with no subsequent maintenance, so it may not work correctly with recent ONNX versions or Python releases, and any issues discovered will not be fixed. Use it for: - Convert an ONNX model to a different opset version to match a target inference runtime's supported opset. - Batch-process multiple ONNX files to standardize their opset versions across a model collection. - Adjust opset in a model loaded in memory before serializing it to disk in a Python workflow. - Downgrade or upgrade a model's declared opset to test compatibility with different ONNX runtime versions. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Changes the opset version of an ONNX model graph, either via command-line or Python API, without altering the model's structure or weights. Yes, if you need a simple one-off opset conversion and are working with a stable ONNX version. No, if you require ongoing maintenance, support for recent ONNX releases, or assurance that the tool will handle edge cases—the package is abandoned and will not receive updates. Consider it a utility for legacy workflows rather than a foundation for new projects. ## Install pip install soc4onnx uv add soc4onnx poetry add soc4onnx ## Installing soc4onnx Before you install: Low install friction with no runtime dependencies. However, the package is abandoned—last release was 2022-09-09 and no commits since then—so it will not receive bug fixes or updates for newer ONNX versions or Python releases. License in practice: MIT License permits commercial and private use with minimal restrictions, requiring only attribution and inclusion of the license notice. Quickstart: pip install soc4onnx from soc4onnx import change changed_graph = change( input_onnx_file_path='model.onnx', output_onnx_file_path='model_opset13.onnx', opset=13 ) Requires ONNX library to be installed separately; package is abandoned and may not work with recent ONNX versions. Verify before relying: - Whether the tool handles all ONNX opset transitions correctly or only specific ranges. - Whether changing opset can cause model validation or runtime failures on certain architectures. - Current compatibility with recent ONNX library versions given the package's abandonment. ## Package facts - License: MIT License (permissive) - Python support: supports_current - Install friction: low - Maintenance: abandoned - Downloads: 82.7K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags onnx opset version change, onnx model opset converter, change onnx opset number, onnx graph opset modifier, onnx compatibility version tool, onnx-tools, model-conversion [View on SkillFed](https://skillfed.io/packages/soc4onnx) · [View on PyPI](https://pypi.org/project/soc4onnx/)