Onnx2tf

Latest version: v1.27.1

Safety actively analyzes 723177 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 6 of 86

1.25.1

- Add `-inimc` / `--input_names_to_interrupt_model_conversion` option.
By specifying ONNX input or output names, only the middle part of the model can be converted. This is useful when you want to see what output is obtained in what part of the model after conversion, or when debugging the model conversion operation itself.

For example, take a model with multiple inputs and multiple outputs as shown in the figure below to try a partial transformation.

![image](https://github.com/user-attachments/assets/2bfd01e4-3476-47fe-b0d0-d422dafe78bd)

- To convert by specifying only the input name to start the conversion


wget https://github.com/PINTO0309/onnx2tf/releases/download/1.25.0/cf_fus.onnx
onnx2tf -i cf_fus.onnx -inimc 448 -coion


![image](https://github.com/user-attachments/assets/de873481-3104-4a81-9240-3cfbd0baaf2f)

- To convert by specifying only the output name to end the conversion


wget https://github.com/PINTO0309/onnx2tf/releases/download/1.25.0/cf_fus.onnx
onnx2tf -i cf_fus.onnx -onimc dep_sec -coion


![image](https://github.com/user-attachments/assets/9f1f78b8-0334-43ea-a358-35dc76619891)

- To perform a conversion by specifying the input name to start the conversion and the output name to end the conversion


wget https://github.com/PINTO0309/onnx2tf/releases/download/1.25.0/cf_fus.onnx
onnx2tf -i cf_fus.onnx -inimc 448 -onimc velocity -coion


![image](https://github.com/user-attachments/assets/fd42a258-4338-4260-a6e6-5e108a926bad)

What's Changed
* Add `-inimc` option by PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/667


**Full Changelog**: https://github.com/PINTO0309/onnx2tf/compare/1.25.0...1.25.1

1.25.0

- tensorflow==2.17.0
- onnx==1.16.1
- onnxruntime==1.18.1
- CUDA EP 12.5
- TensorRT EP 10.2.0

What's Changed
* Add type hints by PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/665
* tf==2.17.0, onnx==1.16.1, onnxruntime==1.18.1 by PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/666


**Full Changelog**: https://github.com/PINTO0309/onnx2tf/compare/1.24.1...1.25.0

1.24.1

- Optimization of four consecutive arithmetic operations using scalar values ​​following `Gemm` and `MatMul`.

If no change occurs in the shape of the input tensor and the output tensor after the operation, skip the broadcast regardless of whether the previous operation was `Gemm` or not. It should be effective no matter how many arithmetic operations on scalar values ​​are performed in succession.

- `repro_new_onnx_model_v2_2.onnx` [repro_new_onnx_model_v2_2.onnx.zip](https://github.com/user-attachments/files/16161837/repro_new_onnx_model_v2_2.onnx.zip)

- Without `-b` option

|ONNX|TFLite|
|:-:|:-:|
|![image](https://github.com/PINTO0309/onnx2tf/assets/33194443/85ddbb82-b9b7-479d-ac83-7b754495248b)|![image](https://github.com/PINTO0309/onnx2tf/assets/33194443/00b98cab-9485-4cd1-8371-2cf19188d658)|

- With `-b 1` option

|ONNX|TFLite|
|:-:|:-:|
|![image](https://github.com/PINTO0309/onnx2tf/assets/33194443/85ddbb82-b9b7-479d-ac83-7b754495248b)|![image](https://github.com/PINTO0309/onnx2tf/assets/33194443/b261b96e-f83f-46a9-b8cb-d3d2d03ef403)|

![image](https://github.com/PINTO0309/onnx2tf/assets/33194443/bcb837c2-6165-4ee2-bfc7-068d03862199)

- `ViT-B-16__openai_partial.onnx` [ViT-B-16__openai_partial_cut.onnx.zip](https://github.com/user-attachments/files/16161878/ViT-B-16__openai_partial_cut.onnx.zip)

|ONNX|TFLite|
|:-:|:-:|
|![image](https://github.com/PINTO0309/onnx2tf/assets/33194443/ebcfdc47-b217-4efd-9ef9-09d2a466ca3e)|![image](https://github.com/PINTO0309/onnx2tf/assets/33194443/54213636-9062-4aee-a428-25790f5746e2)|

- [pre_explicit_broadcast should not expend scalar tensor 573](https://github.com/PINTO0309/onnx2tf/issues/573)

What's Changed
* Optimization of four consecutive arithmetic operations using scalar values ​​following `Gemm` and `MatMul` by PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/664


**Full Changelog**: https://github.com/PINTO0309/onnx2tf/compare/1.24.0...1.24.1

1.24.0

- Significantly upgraded Flatbuffer schema_v3 v2.11.0 -> v2.17.0
- diff (old vs new)
- [diff_output.txt](https://github.com/user-attachments/files/16091727/diff_output.txt)
- `StableHLO`
- `FullyConnected - quantized_bias_type`

What's Changed
* Significantly upgraded Flatbuffer schema_v3 v2.11.0 -> v2.17.0 by PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/663


**Full Changelog**: https://github.com/PINTO0309/onnx2tf/compare/1.23.3...1.24.0

1.23.3

1. Disable arm64/aarch64 containers
2. Fix `GroupConvolution` conversion bug on `-osd` and `-oiqt`.
- [Error when without -dgc: onnx2tf.py -i shufflenet-9.onnx -oiqt 657](https://github.com/PINTO0309/onnx2tf/issues/657)
- [[CI] GitHub Actions fails to build ARM64/aarch64 docker image 653](https://github.com/PINTO0309/onnx2tf/issues/653)

- https://github.com/PINTO0309/onnx2tf/actions/runs/9729858105/job/26852247647
- https://github.com/PINTO0309/onnx2tf/actions/runs/9771330921/job/26973945295

What's Changed
* Disable arm64/aarch64 containers and fix `GroupConvolution` conversion bug on `-osd` and `-oiqt` by PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/661


**Full Changelog**: https://github.com/PINTO0309/onnx2tf/compare/1.23.2...1.23.3

1.23.2

- Temporary deletion arm64

What's Changed
* Temporary deletion arm64 by PINTO0309 in https://github.com/PINTO0309/onnx2tf/pull/660


**Full Changelog**: https://github.com/PINTO0309/onnx2tf/compare/1.23.1...1.23.2

Page 6 of 86

Links

Releases

Has known vulnerabilities

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.