Hello everyone,
I am currently working on a project where I need to handle dynamic shapes (in my case dynamic batch sizes) with a ONNX model. I saw in mid-2021 that Auto Scheduler didn’t handle Relay.Any() and future work needed to be done. The workaround I chose is optimizing the model after fixing the batch size, and this for multiple batch sizes, and then loading the corresponding exported library (.so file) like this everytime I need to switch batch size. However, it takes a lot of time (as tuning one model can take multiple hours). Furthermore, I have memory (RAM and disk) limitations so the workaround is a bit problematic.
Are there another way to handle dynamic shapes or do dynamic shapes be supported soon? Thank you!