Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onnx转tflite 如何让维度保持不变 #63

Open
zhang13359 opened this issue Apr 27, 2024 · 1 comment
Open

onnx转tflite 如何让维度保持不变 #63

zhang13359 opened this issue Apr 27, 2024 · 1 comment

Comments

@zhang13359
Copy link

zhang13359 commented Apr 27, 2024

我用https://netron.app/ 打开model.tflite时,发现里面多了一个Transpose,它将(1,28,28,1)转换为了(1,1,28,28),我并不想让他转换

@MPolaris
Copy link
Owner

因为pytorch和onnx数据格式基本都是channel first的,而tensorflow是channel last的。因此你只需要对输出做一个tranpose。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants