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
scale
,B
,mean
, andvar
must be"constant"
- Clip
- must be opset version 6 or 11
- if opset version is 11
max
must be"constant"
min
must be 0
- Concat
- Conv
- Dropout
- equivalent identity function
- Elu
- Flatten
- Gemm
- GlobalAveragePool
- LeakyRelu
- LRN
- MatMul
B
must be Constant value or have initializer value
- MaxPool
ceil_mode = 1
is not supporteddilations
is not supported
- Mul
- Pad
mode
must be"constant"
- PRelu
slope
must be"constant"
and a single value tensor
- ReduceMean
- 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
- Unsqueeze
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.7-py3-none-any.whl
(25.6 kB
view hashes)
Close
Hashes for nnoir_onnx-1.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2efa51ede39d6bb7a4d4eca26d0e8d0472561302be8e051e3d3e7a73519fe3cf |
|
MD5 | 18d9624803ee475e1e329ae3aa1fdb09 |
|
BLAKE2b-256 | bd31b8ad007fa53f6896ec51e958ce105d59c429a42bf3284d39166530ebc1ce |