[SOLVED] Warning: Desired layout(s) not specified for op: image.resize2d

Hello, I’m getting following warning messages during model compilation:

[16:26:02] /home/piotr/projects/odai/tvm/tvm/src/relay/transforms/convert_layout.cc:99: Warning: De
sired layout(s) not specified for op: image.resize2d
[16:26:02] /home/piotr/projects/odai/tvm/tvm/src/relay/transforms/convert_layout.cc:99: Warning: De
sired layout(s) not specified for op: image.resize2d
[16:26:02] /home/piotr/projects/odai/tvm/tvm/src/relay/transforms/convert_layout.cc:99: Warning: De
sired layout(s) not specified for op: image.resize2d

Using compiled module in Java api produces problematic values - it only produces 1.0 values. Does this warning is related to my problem? How to solve this warning?

It is not related. It simply means additional layout_transform is being inserted before image.resize2d. Unfortunately there is no easy way to fix this, other than adding support for your layout to image.resize2d op.

1 Like