Closed hikaru-nara closed 3 years ago
It is weird that adding that plus one cause the method to fail.... Am I doing anything wrong? Please, any hint will be appreciated.
It seems that it is ok even though the shapes are none. I've not tested but the engine has been built successfully. Close this one for the time being.
You just need to manually provide the shapes for modify_onnx().
You just need to manually provide the shapes for modify_onnx().
I encountered with the same problem, however, gridsampler is used many times with different input shape, so do you know any other solution for this issue, thanks ahead!
When I use the method in this repo to export F.grid_sample in a large model, there is something wrong with the exported graph. The shapes of the inputs of GridSampler nodes are nonetype.
To reproduce
Change the model definition to (Note the +1 in the argument passed to F.grid_sample)
Then export the model, and print the nodeof op GridSampler with the following code.
And then the console prints
The desired behavior is that the shape and dtype of the input should not be None.