Skip to content

Force output to have chw layout #1973

@devalexqt

Description

@devalexqt

Even if I specify my input is chw, output still has hwc layout.
How to fix this?

python -m tf2onnx.convert  --opset 13 --saved-model  model --output  model.onnx --inputs input:0[1,256,256,3] --inputs-as-nchw input:0 --rename-inputs input

onnx_input-chw
onnx_output-edit

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestquestionAn issue, pull request, or discussion needs more information

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions