CMDs#
The library implements a couple of command lines.
python -m yobx
usage: yobx [-h] {agg,dot,find,partition,print,render-gallery,run-doc-examples,stats,validate}
yobx main command line.
positional arguments:
{agg,dot,find,partition,print,render-gallery,run-doc-examples,stats,validate}
Selects a command.
options:
-h, --help show this help message and exit
Type 'python -m yobx <cmd> --help'
to get help for a specific command.
agg - aggregates statistics from multiple files
dot - converts an onnx model into dot format
find - find node consuming or producing a result
partition - partition a model, each partition appears as local function
print - prints the model on standard output
render-gallery - convert a sphinx-gallery .py example to RST (no execution)
run-doc-examples - run all runpython:: and gdot:: examples in RST/Python files
stats - compute statistics on an onnx model
validate - validate a model (knowing its model id on HuggingFace Hub)
- -m yobx agg … aggregate statistics from benchmark runs
- -m yobx dot … convert an onnx model into dot format
- -m yobx find … find nodes consuming or producing a result
- -m yobx partition … move layer nodes in local functions
- -m yobx print … print an onnx model on standard output
- -m yobx render-gallery … convert a sphinx-gallery example to RST
- -m yobx run-doc-examples … run all runpython:: and gdot:: examples