Comments (3)
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.
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
from onnx2tf.
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)
- "GEMM: Dimension mismatch" during value validation phase HOT 4
- Exclude selected operations from INT8 quantized model HOT 18
- ValueError in MaxPool Layer during ONNX to TensorFlow Conversion with 3D Input HOT 5
- The tflite detection result converted from the yolo NAS model is inaccurate. HOT 5
- Converting quantized onnx with Q/DQ representation to full int8 TFLite model HOT 2
- Unable to replace flatten HOT 4
- How to convert onnx(NCHW) to NHWC and write back to onnx file Because my HW takes onnx file as input in NHWC format HOT 3
- How to convert onnx(NCHW) to NHWC(without adding transpose) and write back to onnx file HOT 1
- Please do reply for the last time either this issue or @ How to convert onnx(NCHW) to NHWC(without adding transpose) and write back to onnx file #586 HOT 1
- ONNX Split operation converts to a tf StridedSlice operation with outputs in the wrong order. HOT 2
- Depth_Anything to ONNX model's conversion failed HOT 1
- Bad accuracy after conversion HOT 1
- onnx2tf conversion error for gpt2 transformers model HOT 2
- onnx2tf conversion error for gpt2 transformers model #591 follow up HOT 2
- Error when trying to run converted model; gpt2 tensorflow from onnx #591 follow up HOT 1
- Modifying Multi-output Layer index when Exporting onnx to tflite HOT 1
- Model modification issue HOT 2
- Onnx to tflite conversion issue on TILE layer.
- While converting onnx to tflite TILE layer is getting ignored. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from onnx2tf.