[SOLVED] Failed to compile models for ARMv7 Mali GPU with opt_level 3

I’ve got ASUS Tinker Board S
Quad-core Cortex-A17 @1.8 GHz (ARMv7)
Quad-core ARM Mali-T760 MP4 GPU @600MHz (OpenCL 1.1)
2GB RAM

I tried to compile resnet18_v1 and squeezenet1.1 for Mali GPU (ARMv7) using the latest tvm code from github.
The compilation and running of the compiled models work fine for opt_level 1 and 2!
But if I switch to opt_level 3 I start getting error - Target shape size is different to source

Compilation code:

resnet18_v1 compilation output:
(147456 vs. 51380224) Target shape size is different to source. Target: [6,6,16,4,64]

squeezenet1.1 compilation output
(262144 vs. 205520896) Target shape size is different to source. Target: [4,4,64,4,64]

The host platform is 32 bit ARMv7 (maybe int precision on 32 bit platform is the root cause of the issue)

The solution here is to compile the models for ASUS Tinker Board S on regular x86_64 Ubuntu box

target = tvm.target.mali()
target_host = 'llvm -device=arm_cpu -model=rk3288 -target=armv7l-linux-gnueabihf'