Skip to content

Scales input of resize is not modified during format change

Context

The Export CPP handles NHWC tensors while aidge tensors are NCHW by default.
That's why the adapt_to_backend() function was recently added, it allows to set the format for each node of a specific backend, then when calling this function the dimensions are changed (and intermediate tensors transposed).

Issue

This does not seem to work for the scales input of the resize node.

Pasted_image_20250801163423

As shown above the data_input dimensions have correctly been changed from [1, 256, 16, 16] to [1, 16, 16, 256], however the scales inputs remains [1, 1, 2, 2] instead of [1, 2, 2, 1] leading to wrong outputs dimensions.