How to change NHWC to NHCW?

I want to change the input to NHCW, not NHWC. How should I set it up during the model compilation process?

Hasn’t anyone tried it?

For most models you can just use the raw streams instead of the vstream. You can see the streams of the model using the following command:

hailortcli parse-hef --parse-streams model.hef

The HailoRT raw_stream and vstream examples are probably useful to have a look at.

In case the raw_stream does not have the NHCW format you can use the following Hailo Dataflow Compiler ALLS command to prevent the addition of the reshape operation:

allocator_param(automatic_reshapes=disabled)