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
- Cos
- Div
- 1st input must not be
"constant"
- 1st input must not be
- Dropout
- equivalent identity function
- Elu
- Flatten
- Gemm
- GlobalAveragePool
- LeakyRelu
- LRN
- LSTM
- only
seq_length == 1
direction
must be forward- Supported
activations
are belowSigmoid
Tanh
Relu
- Not support
clip
andinput_forget
- only
- MatMul
- 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
- Sin
- Softmax
- Split
- must be from opset version >= 13
- Second optional parameter
split
is not supported
- Squeeze
- Sub
- 1st input must not be
"constant"
- 1st input must not be
- Sum
- 2 inputs
- Tan
- 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 Distribution
nnoir-onnx-1.0.12.tar.gz
(23.9 kB
view hashes)
Built Distributions
nnoir_onnx-1.0.12-py3.7.egg
(75.2 kB
view hashes)
Close
Hashes for nnoir_onnx-1.0.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d60b9cf42765cf528e8db9f9fdc819cdb6c926a02d4865c42103c38f2cb4bada |
|
MD5 | ba8039752784776cfab852e58d6c5347 |
|
BLAKE2b-256 | c4043f3d91acbdc43f5e8c361f803c84ae271c7eadabbbffa4f66eb4ad97339d |