Samsung / ONE

On-device Neural Engine
Other
437 stars 158 forks source link

Compiler FE: NCHW/NHWC layout for input/output nodes #7369

Open seanshpark opened 3 years ago

seanshpark commented 3 years ago

We may need to provide some information about input/output node layout of first main subgraph.

Background:

For nchw_to_nhwc_input_shape and nchw_to_nhwc_output_shape, there is no information saved to distinguish applied or not.

Let's solve this problem somehow.

seanshpark commented 3 years ago

Previous related issue: #5487

hseok-oh commented 3 years ago

We may need more field for data layout in circle schema

Maybe we can use current data_layout field for operation and introduce new field for I/O type.

seanshpark commented 3 years ago

Maybe we can use current data_layout field

Where can I see data_layout field ?

hseok-oh commented 3 years ago

Maybe we can use current data_layout field

Where can I see data_layout field ?

My typo: data_layout -> data_format

https://github.com/Samsung/ONE/blob/50a90165c887e9525500a362f2df7bc2a3083c0b/nnpackage/schema/circle_schema.fbs#L1090-L1092