NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI · #4407 most downloaded on PyPI
A tool for converting ONNX files to LiteRT/TFLite/TensorFlow, PyTorch native code (nn.Module), TorchScript (.pt), state_dict (.pt), Exported Program (.pt2), and Dynamo ONNX. It also supports direct conversion from LiteRT to PyTorch.
Last release 10 days ago
14 Sep 2026
Release timing varies
gaps range from 8 days to 2 months
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
629 releases · first in 2022
Modified to suppress broadcast when Gemm is immediately followed by a scalar Mul, Div, Sub, or Mod.
Mul, Div, Sub, or Mod
Gemm is immediately followed by a scalar Mul, Div, Sub, or Mod.Gemm is immediately followed by a scalar Mul, Div, Sub, or Mod. by @PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/577Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.19.9...1.19.10
Improved GatherElements conversion stability.
GatherElements conversion stability.
GatherElements conversion stability. by @PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/576Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.19.8...1.19.9
One column per quarter.
Fixed Abort bug when converting models with --optimization_for_gpu_delegate.
Gemm
Fixed Abort bug when converting models with --optimization_for_gpu_delegate.
| onnx | before tflite | after tflite |
|---|---|---|
--optimization_for_gpu_delegate. by @PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/574Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.19.7...1.19.8
Improved the display of auxiliary error messages regarding flatc installation instructions.
flatc installation instructions.Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.19.6...1.19.7
Support for STFT (Partially supported)
STFT (Partially supported)
<img width="1120" alt="image" src="https://github.com/PINTO0309/onnx2tf/assets/16576982/6e0272dd-e9d1-4e76-becb-73328c097975">
Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.19.5...1.19.6
Implement workaround for cases where the input tensor contains multiple undefined dimensions.
Resize
Resize aborting only when resizing by the scales parameter, not by the sizes parameter.Resize by @PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/564Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.19.4...1.19.5
Added ability to optimize patterns with consecutive ReLU and ReLU6
Added ability to optimize patterns with consecutive ReLU and ReLU6
| ONNX | TFLite (Unoptimized) | TFLite (Optimized) |
|---|---|---|
ReLU and ReLU6 by @PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/562Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.19.3...1.19.4
Protocol Buffers serialization process was adapted to the new onnx==1.15.0 specification.
-nodafsc, -eatfp16 by @PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/560Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.19.2...1.19.3
Support for Gelu https://github.com/onnx/onnx/blob/main/docs/Changelog.md#gelu-20
Gelu
https://github.com/onnx/onnx/blob/main/docs/Changelog.md#gelu-20Gelu by @PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/559Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.19.1...1.19.2
Fixed a bug that caused -nodafsc processing to be unconditionally skipped.
Fixed a bug that caused -nodafsc processing to be unconditionally skipped.
Conversion of YoloV5, conversion of StridedSlice from 5d to 4d #557
-nodafsc processing to be unconditionally skipped. by @PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/558Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.19.0...1.19.1
tf v2.15.0 by @PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/554
Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.18.15...1.19.0
Half-precision Inference Doubles On-Device Inference Performance.
Half-precision Inference Doubles On-Device Inference Performance.
On certain ARM cores, specifying a hint that the model is a Float16 precision model doubles the conventional inference speed.
-eatfp16, --enable_accumulation_type_float16 ENABLE_ACCUMULATION_TYPE_FLOAT16
Hint for XNNPack fp16 inference on float16 tflite model.
https://blog.tensorflow.org/2023/11/half-precision-inference-doubles-on-device-inference-performance.html
This is result in macbook.
Chip: Apple M1 Pro (ArmV8 processor)
Python 3.9
Tensorflow 2.15.0 (from pip install tensorflow==2.15.0)
<img width="811" alt="image" src="https://github.com/PINTO0309/onnx2tf/assets/74748700/51799aff-b006-46e1-a372-bd8b2195b854">
Regarding on x86, AVX2 is necessary and rebuild python package in PyPI seems be NOT enabled AVX2. According to the blog, AVX2 emulation in x86 is for precision check and its is slow.
Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.18.14...1.18.15
Fixed a problem with conversion abort when K is set to a primitive integer.
Trilu
K is set to a primitive integer.Trilu by @PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/539Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.18.13...1.18.14
Bug fix for --number_of_dimensions_after_flextranspose_compression option.
Reshape, common_functions.py
--number_of_dimensions_after_flextranspose_compression option.--number_of_dimensions_after_flextranspose_compression option. by @PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/537Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.18.12...1.18.13
Improved stability of accuracy check process for unsearchable OPs in subgraphs.
onnx2tf.py
Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.18.11...1.18.12
If all axes are of different sizes and the axis sizes specified in axis are the same in onnx and TensorFlow, skip the accuracy check.
Softmax, LayerNormalization
Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.18.10...1.18.11
Fixed an error when the input tensor was 1-dimensional during Concat accuracy correction.
Concat
Concat accuracy correction.Clip
Clip.Concat accuracy correction. by @PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/532Clip by @PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/533Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.18.9...1.18.10
Much stricter accuracy correction conditions for Reshape.
Reshape
Reshape.Concat
np.ndarray (constant) by @PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/531Reshape by @PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/530Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.18.8...1.18.9
https://s3.ap-northeast-2.wasabisys.com/temp-models/onnx2tf_529/latest.opset17.onnx
Reshape
Reshape accuracy correction process.LayerNormalization
Reshape, LayerNormalization accuracy correction process by @PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/529Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.18.7...1.18.8
Improved processing speed of MatMul accuracy correction process.
MatMul
MatMul accuracy correction process.Concat
Concat input tensors where all axes except the batch size are the same size.MatMul accuracy correction process by @PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/527Concat input tensors where all axes except the batch size are the same size. by @PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/528Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.18.6...1.18.7
Improved BatchMatMul transformation stability in the presence of undefined dimensions in the input tensor.
MatMul
BatchMatMul transformation stability in the presence of undefined dimensions in the input tensor.BatchMatMul transformation stability in the presence of undefined dimensions in the input tensor. by @PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/526Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.18.5...1.18.6
Reduces the frequency of output shape mismatch.
common_functions.py
Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.18.4...1.18.5
Pilot implementation of Col2Im.
Col2Im
Col2Im.Col2Im by @PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/524Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.18.3...1.18.4
Improved stability of the overall model transformation when the input tensor contains two or more undefined dimensions.
Resize
Resize with undefined dimensions.onnx2tf \
-i retinaface_onnx_dynamic.onnx \
-osd \
-cotof
| onnx | Before tflite | After tflite |
|---|---|---|
Resize with undefined dimensions by @PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/523Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.18.2...1.18.3
Improved conversion stability when multiple undefined dimensions exist in the input tensor.
Gather
| onnx | tflite |
|---|---|
onnx2tf.py
Concat, common_functions.py
Gather instead of Transpose when the tensor to be concatenated is a 1D tensor.Gather parameter substitution logic by @PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/522Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.18.1...1.18.2
Improved stability of Float16 Pow conversion.
Pow
Float16 Pow conversion.Float16 Pow conversion by @PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/519Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.18.0...1.18.1
CLIP ViT Large https://github.com/onnx/models/blob/new-models/models/mlagility/openai_clip-vit-large-patch14/openai_clip-vit-large-patch14-16.onnx !im
Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.17.9...1.18.0
Improved conversion stability for tensors with None geometry.
Slice, Gather, Concat
None geometry.fasterrcnn_resnet50_fpn.onnxNone geometry by @PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/517Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.17.8...1.17.9
Fixed a conversion bug in the Dropout, GRU, LSTM, RNN OP for a very old opset.
Dropout, GRU, LSTM, RNN
Dropout, GRU, LSTM, RNN OP for a very old opset.Dropout, GRU, LSTM, RNN OP for a very old opset by @PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/516Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.17.7...1.17.8
converter._experimental_disable_batchmatmul_unfold -> converter.unfold_batchmatmul
onnx2tf.py
converter._experimental_disable_batchmatmul_unfold -> converter.unfold_batchmatmulconverter._experimental_disable_batchmatmul_unfold -> converter.unfold_batchmatmul by @PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/514Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.17.6...1.17.7
Bernoulli, Resize, common_functions.py
Bernoulli, Resize, common_functions.py
Lambda functions.proto_splitter, which will be implemented in TensorFlow v2.15.0 or later.Lambda functions. by @PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/513Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.17.5...1.17.6
Softmax, InstanceNormalization, Add, Sub, Div, Mul, Mod
Softmax, InstanceNormalization, Add, Sub, Div, Mul, Mod
Significantly faster Softmax, InstanceNormalization, Add, Sub, Div, Mul and Mod conversions when converting models too large to perform dummy inference.
However, because the size of the model is so large that dummy inference cannot be performed, no accuracy correction is performed and accuracy is not guaranteed.
Stable Diffusion - stable-diffusion-v1-5
https://github.com/PINTO0309/onnx2tf/assets/33194443/98c86e36-9ae1-4b59-b53c-2827502e0532
[Stable Diffusion] Conversion error with stable diffusion model. #424
Softmax, InstanceNormalization, Add, Sub, Div, Mul and Mod conversions when converting models too large to perform dummy inference by @PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/512Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.17.4...1.17.5
Significantly improved the efficiency of MatMul error correction process when dummy inference is not possible.
MatMul
MatMul error correction process when dummy inference is not possible.MatMul calculation.MatMul error correction process when dummy inference is not possible. by @PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/511Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.17.3...1.17.4
Added display of log messages by @PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/510
onnx2tf.py
Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.17.2...1.17.3
Improved efficiency of dummy shape estimation process.
MatMul
np.dot -> np.matmulnp.float64 -> np.float32np.dot -> np.matmul, np.float64 -> np.float32 by @PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/509Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.17.1...1.17.2
Fixed to output all TF, h5, and keras formats when outputting .h5. !image
onnx2tf.py
Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.17.0...1.17.1
Ubuntu 20.04 is no longer supported.
Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.16.31...1.17.0
Added conversion progress indicator. !image
common_functions.py
Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.16.30...1.16.31
Improved stability of MatMul transformations when the output tensor is too large to allow dummy inference
MatMul
MatMul transformations when the output tensor is too large to allow dummy inferenceMatMul transformations when the output tensor is too large to allow dummy inference by @PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/504Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.16.29...1.16.30
Improved transposition determination algorithm.
ScatterND
Concat
ScatterND transposition determination algorithm by @PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/503Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.16.28...1.16.29
Improved optimization of non-optimizable OneHot with onnx-optimizer and onnxsim.
OneHot
OneHot with onnx-optimizer and onnxsim.| Before | After |
|---|---|
OneHot with onnx-optimizer and onnxsim by @PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/502Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.16.27...1.16.28
Added NHWC information propagation processing to DepthToSparse and improved conversion stability.
DepthToSparse
DepthToSparse and improved conversion stability.DepthToSparse and improved conversion stability by @PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/501Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.16.26...1.16.27
The logic for early termination of the accuracy verification step was dropped.
Softmax
GridSample
Softmax and GridSample accuracy degradation by @PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/500Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.16.25...1.16.26
Improved model conversion stability by adding an initialization process for useless output shapes.
Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.16.24...1.16.25
Fails to export BatchNorm1d layers from Pytorch #5590
Selu
Optimization of Selu.
| Before | After |
|---|---|
Selu by @PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/498Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.16.23...1.16.24
Significantly improved conversion success rate for models containing Einsum.
Einsum
Einsum.onnx.shape_inference and onnxsim fails.Einsum by @PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/497Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.16.22...1.16.23
Implemented workaround for shape correction when final output shapes do not match.
BatchNormalization
Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.16.21...1.16.22
Add handling of cases where the first or second tensor is 1-dimensional.
MatMul
Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.16.20...1.16.21
Fix Slice degrades by @PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/494
Slice
Slice degradesSlice degrades by @PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/494Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.16.19...1.16.20
Improved processing stability for Where and GatherND by @PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/493
Where, GatherND
Where and GatherND by @PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/493Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.16.18...1.16.19
Mul, Div, Add, Sub, Mod, Less, LessOrEqual, Greater, GreaterOrEqual, Equal ,And, Or, Xor
Mul, Div, Add, Sub, Mod, Less, LessOrEqual, Greater, GreaterOrEqual, Equal ,And, Or, Xor
Softmax, Conv, GroupNorm, Reshape, ConvInteger, InstanceNormalization
Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.16.17...1.16.18
Improve accuracy of NHWC decision in Concat.
Concat
Concat.Slice
Slice.Slice transformed using tensorflow-onnx are in a disjointed state.
Concat and support edge cases in Slice by @PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/491Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.16.16...1.16.17
Major overhaul of ScatterND process.
ScatterND
ScatterND process.Einsum
Einsum conversion stability.ScatterND process by @PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/489Einsum conversion stability by @PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/490Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.16.15...1.16.16
Improved stability of the process of calculating expected RAM consumption.
common_functions.py
Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.16.14...1.16.15
Revised the method of determining the position of the axis of the Unsqueeze target.
Unsqueeze
Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.16.13...1.16.14
Official tf.nn.softmax doesn't support input logits with dimension > 5. This limit would fail onnx2tf correction_process_for_accuracy_errors() check,
Softmax
tf.nn.softmax doesn't support input logits with dimension > 5. This limit would fail onnx2tf correction_process_for_accuracy_errors() check, when tf subgraph contains softmax op with input dimension > 5.tf.nn.softmax, reshape the input logits to [reduce_prod(shape[:axis]), shape[axis], reduce_prod(shape[axis + 1:])].
after tf.nn.softmax, reshape back to original logits shape.Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.16.12...1.16.13
Improved overall model transformation processing stability.
ScatterND
Where
ScatterND and Where conversions by @PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/485Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.16.11...1.16.12
Reduces post-concat accuracy degradation when all axes except batch size have the same value.
Concat
Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.16.10...1.16.11
Reduce error frequency of Concat of two tensors containing constants.
Concat
Concat of two tensors containing constants.common_functions.py
Sub, Div and Mod.Concat of two tensors containing constants and disable tensor swapping during Sub, Div and Mod. by @PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/482Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.16.9...1.16.10
Eliminates unnecessary narrowing of the search for the correct answer axis.
MatMul
Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.16.8...1.16.9
Your coding agent can read these notes before it upgrades. Set up the MCP server →