GithubHelp home page GithubHelp logo

Comments (3)

PINTO0309 avatar PINTO0309 commented on June 1, 2024

I don't know what you expect me to do. ONNX works only in NCHW format. It is impossible in principle.

If you can't tolerate only one Traspose, give up. I cannot change the ONNX specifications.

from onnx2tf.

PINTO0309 avatar PINTO0309 commented on June 1, 2024
onnx2tf -i aaa.onnx -kt {input_op_name}

onnx2tf -i aaa.onnx -kat {input_op_name}

https://github.com/PINTO0309/onnx2tf?tab=readme-ov-file#cli-parameter
image

from onnx2tf.

abhishek27m1992github avatar abhishek27m1992github commented on June 1, 2024

I don't know what you expect me to do. ONNX works only in NCHW format. It is impossible in principle.

If you can't tolerate only one Transpose, give up. I cannot change the ONNX specifications.

So sorry if i'm unable to make you understand. I will try my best to explain.

First i'm not using onnxruntime. we have our own runtime SDK & NN hardware which accepts NHWC format.

if i convert pytorch models to tflite via onnx ---> so many transpose layer gets added. so I used your tool openvino2tflite which nicely removes transpose layers.

Now i want to add support .onnx to my SDK. My assumption is if we somehow only change memory format to NHWC - aka how tensor laid in memory i.e. weights & biases etc... in onnx file then i feed same .onnx to my SDK & H/W it should work. but i know it will not work in onnx runtime. Please correct me if i'm wrong.

So that's what i wanted to do with your tool.

from onnx2tf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.