{"categories":[{"label":"Artificial Intelligence","url":"https://skillfed.io/packages/category/scientific-engineering-artificial-intelligence/11"}],"enrichment":{"capability":"Rewrites attributes and constants in ONNX model operators via CLI or Python API, supporting both file-based and in-memory graph modifications.","skillfed_tags":["onnx-tools","model-editing","ml-ops"],"use_cases":["Adjust operator attributes (e.g., transpose permutation, reshape dimensions) in an exported ONNX model without retraining.","Modify constant tensor values feeding into operators to test different hyperparameters or thresholds.","Batch-edit multiple models' parameters via CLI for deployment pipeline automation.","Recursively update parameters in conditional branches (If operators) across a model's subgraph structure.","Prepare quantized or pruned models by rewriting shape metadata or operator-specific configuration."],"what_it_does":"sam4onnx is a lightweight utility for modifying operator attributes and constant inputs in ONNX models. It accepts either a file path to an .onnx model or an in-memory onnx.ModelProto object, locates a specified operator by name, and rewrites its attributes or the constants feeding into it. The tool operates on a single operator at a time and includes support for recursive modification within If operator subgraphs.\n\nThe package provides both a command-line interface and a Python API. It does not validate the overall graph integrity after modifications\u2014that responsibility falls to the user. It is designed for simple, targeted edits rather than comprehensive model transformation, making it useful for quick parameter adjustments, debugging, or preparing models for deployment with modified hyperparameters.","worth_installing":"Yes, if you need to edit ONNX operator parameters post-export. Low install friction, no dependencies, permissive license, and straightforward API make it a practical choice for model tweaking. Aging maintenance (189 days since last release) is a minor concern but not a blocker for a stable utility tool. Verify that graph-level side effects of your edits are acceptable before relying on it in production pipelines."},"id":"sam4onnx","links":{"html":"https://skillfed.io/packages/sam4onnx","md":"https://skillfed.io/packages/sam4onnx.md","pypi":"https://pypi.org/project/sam4onnx/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2026-02-06","license_spdx":null,"license_treatment":"permissive","name":"sam4onnx","python_support":"supports_current","summary":"A very simple tool to rewrite parameters such as attributes and constants for OPs in ONNX models. Simple Attribute and Constant Modifier for ONNX."},"popularity":{"monthly_downloads":82975,"position":14113,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2.0.0"}
