计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
python-simplification【效率与协作】CLI and Python API workflows for simplifying ONNX models.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is to simplify an ONNX model from a file or an
onnx.ModelProto with onnxsim.simplify or the onnxsim CLI.
check_n, check_rtol, check_atol, and
input_fill.advanced-graph-control
sub-skill (../advanced-graph-control/SKILL.md).bindings-and-packaging sub-skill
(../bindings-and-packaging/SKILL.md).ModelProto.overwrite_input_shapes, test_input_shapes, input_data, or
input_fill.skip_optimization, skip_constant_folding, skip_shape_inference,
skip_fuse_bn, mutable_initializer, initializers_as_constants, and
inline_functions.providers, --cuda, and
target_opset_version.check_n and a direct round-trip
comparison when needed.Use scripts/simplify_tiny_model.py for a
safe smoke run:
python scripts/simplify_tiny_model.py --help
python scripts/simplify_tiny_model.py --check-n 3 --input-fill arange --print-summary
python scripts/simplify_tiny_model.py --output tiny-simplified.onnx
The script builds a tiny synthetic model, simplifies it with the public API, validates the result, and never downloads models.
(model_simp, check); treat check=False as a stop
signal unless the caller explicitly wants an exploratory run.providers is omitted, folding stays on CPU.--print-summary.advanced-graph-control sub-skill.bindings-and-packaging sub-skill.