Onnxify.CLI
0.3.3
dotnet tool install --global Onnxify.CLI --version 0.3.3
dotnet new tool-manifest
dotnet tool install --local Onnxify.CLI --version 0.3.3
#tool dotnet:?package=Onnxify.CLI&version=0.3.3
nuke :add-package Onnxify.CLI --version 0.3.3
Warning This package is currently in active development and research. Its public API is unstable and may change radically in future versions.
Onnxify.CLI
Onnxify.CLI is the command-line entry point for this repository. It is published as a dotnet tool and exposes the onnxify command.
Install
dotnet tool install --global Onnxify.CLI
What It Provides
- Inspect ONNX model structure from the terminal.
- Compare ONNX model structure from the terminal.
- Inspect safetensors files from the terminal.
- Generate C# project output from an ONNX model.
Example Commands
onnxify --version
onnxify onnx show model.onnx
onnxify onnx show --inputs --outputs --nodes model.onnx
onnxify onnx diff original.onnx exported.onnx
onnxify onnx diff --nodes original.onnx exported.onnx
onnxify onnx inputs-outputs model.onnx
onnxify safetensors show model.safetensors
onnxify project generate model.onnx output-dir
ONNX Commands
Show A Model
onnxify onnx show [options] <model.onnx>
Without options, onnx show prints the default OnnxModel representation. With one or more section options, it prints a compact summary and only the requested sections.
Options:
--inputsincludes graph inputs.--outputsincludes graph outputs.--valuesincludes initializer previews and intermediate value-info entries.--nodesincludes compact node signatures with inputs, outputs, and attributes.
Compare Two Models
onnxify onnx diff [options] <left.onnx> <right.onnx>
onnx diff compares two ONNX models and prints metadata, operator counts, and ordered graph-section differences. Without section options, it includes inputs, outputs, values, and nodes. With section options, it always includes metadata and operator counts, then only the requested graph sections.
Options:
--inputsincludes graph input differences.--outputsincludes graph output differences.--valuesincludes initializer and intermediate value differences.--nodesincludes compact node signature differences.
Show Inputs And Outputs
onnxify onnx io <model.onnx>
onnxify onnx inputs-outputs <model.onnx>
Both forms print the model input and output tensors.
Repository
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
This package has no dependencies.
## 0.3.3
- Picked up the core graph-loading fixes for ONNX models with `None` tensor dimensions and positional empty optional node inputs.
## 0.3.2
- Aligned the package version with the 0.3.2 Onnxify package family release.
- Picked up the core graph-loading fix for ONNX files whose `value_info` repeats graph input or output names.
- Added section filters to `onnxify onnx show`, including `--nodes`, `--values`, `--inputs`, and `--outputs`.
- Added `onnxify onnx diff` with matching section filters for comparing model summaries, nodes, values, inputs, and outputs.
## 0.3.0
- Aligned the package version with the 0.3.0 Onnxify package family release.
- Picked up the TorchSharp `0.107.0` baseline used by the TorchSharp-backed package family.
- Picked up the latest package-family improvements, including expanded ModelGenerator TorchModule import coverage.
## 0.2.0
- Aligned the package version with the 0.2.0 Onnxify package family release.
## 0.1.2
- Aligned the package version with the 0.1.2 Onnxify package family release.
## 0.1.1
- Aligned the package version with the 0.1.1 Onnxify package family release.
## 0.0.0.1
- Initial release