Skip to content

Conv and KERAS storage_order does not match - is this right #4099

Answered by zhenhuaw-me
ed-mr asked this question in Q&A
Discussion options

You must be logged in to vote

Thank @ed-mr for rounting me here. I did complain about ONNX's flexiblity of data layouts when creating tflite2onnx and spend much effort to resolve it. I agree that the NCHW constraint put burdens on the exporters and importers of ONNX. But two years later as of today, I think the NCHW constraints are acceptable.

ONNX is a protocal, a language, which needs to be understood by the exporters and importers. Understanding is a non-trivial effort.

As of now, the tools know the NCHW constraint and can easily generate or parse the semantic of the particular operator. They can insert Transpose to the local graph or do layout propagation across graph (tflite2onnx use the later approach). If the d…

Replies: 3 comments 16 replies

Comment options

You must be logged in to vote
2 replies
@ed-mr
Comment options

@jcwchen
Comment options

Comment options

You must be logged in to vote
6 replies
@ed-mr
Comment options

@jcwchen
Comment options

@ed-mr
Comment options

@ed-mr
Comment options

@jcwchen
Comment options

Comment options

You must be logged in to vote
8 replies
@zhenhuaw-me
Comment options

@zhenhuaw-me
Comment options

@ed-mr
Comment options

@zhenhuaw-me
Comment options

@ed-mr
Comment options

Answer selected by ed-mr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants