There is a newer version of the record available.

Published September 25, 2022 | Version 1.5.33
Software Open

Tools to convert ONNX files (NCHW) to TensorFlow format (NHWC)

Authors/Creators

Description

  • Softmax
    • Detect conversion errors in axis and identify the axis with the smallest possible error and replace it.
    • Automatic selection of the axis with the smallest error by measuring the error of all axes in the process of model transformation.
    • Because the minimum inference is performed multiple times, the conversion speed of the model including Softmax is slightly slower, instead of no longer incurring an accuracy error.
    • Almost eliminates conversion errors in Softmax operations in Transformer models that contain a large number of Softmax, such as MobileFormer.
    • This implementation can be applied to various OPs that handle axis. For example, ReduceXX, ArgMax.
    • The sample JSON file was modified to reflect this improvement. https://github.com/PINTO0309/onnx2tf/blob/main/json_samples/replace_MobileFormer-e9.json

Implementation of strict mode #145 [MobileFormer] Converted model outputs values mismatch with original ones. #105 [MobileFormer]Dimensions must be equal [Add Layer] #103

What's Changed

Full Changelog: https://github.com/PINTO0309/onnx2tf/compare/1.5.32...1.5.33

Notes

If you use onnx2tf in your research, please cite it using these metadata.

Files

PINTO0309/onnx2tf-1.5.33.zip

Files (451.0 kB)

Name Size Download all
md5:058a08de2b3252645c57b6300f6d29c7
451.0 kB Preview Download

Additional details

Related works