ONNX to NNOIR Converter
Project description
nnoir-onnx
nnoir-onnx is a converter from ONNX model to NNOIR model.
Install
pip install nnoir-onnx
Example
wget https://www.cntk.ai/OnnxModels/mnist/opset_7/mnist.tar.gz
tar xvzf mnist.tar.gz
onnx2nnoir -o model.nnoir mnist/model.onnx
Supported ONNX Operators
- Add
- AveragePool
- BatchNormalization
- Clip
min
must be 0
- Concat
- Conv
- Dropout
- equivalent identity function
- Elu
- Flatten
- Gemm
- GlobalAveragePool
- LRN
- MatMul
B
must be Constant value or have initializer value
- MaxPool
- Pad
mode
must be"constant"
- ReduceSum
- Relu
- Reshape
- Resize
- must be from opset version >= 11
mode
must be"linear"
coordinate_transformation_mode
must be either"pytorch_half_pixel"
or"align_corners"
- Sigmoid
- Softmax
- Sub
- 1st input must not be
"constant"
- 1st input must not be
- Sum
- 2 inputs
- Tanh
- Transpose
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
nnoir_onnx-1.0.5-py3-none-any.whl
(23.6 kB
view hashes)
Close
Hashes for nnoir_onnx-1.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44d1ea9d7d80d3594aac64c183abfb5e1c74c0cda5aa13e9c342d79e9f996398 |
|
MD5 | 54f39d0b1b714d29e22e257eb57cb6b3 |
|
BLAKE2b-256 | e8f44807e50af2908d3957c90fa70a88a96f8c81a0b6424166c4163460073317 |