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
- 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.11.tar.gz
(22.4 kB
view hashes)
Built Distributions
nnoir_onnx-1.0.11-py3.7.egg
(71.3 kB
view hashes)
Close
Hashes for nnoir_onnx-1.0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f57fbc39a5d917a5ba19aded5d16261235c4b02c76b3d9a67e65dad0a1d3e25e |
|
MD5 | abde90bf5ef98e71989dd13054f8b0c5 |
|
BLAKE2b-256 | 3c44dcbbb4a18b5f8caeff09cd9ab27be6dce53b48df3662fa5e0a808cba43d9 |