Hi,
I’m trying to convert a Pytorch model to CoreML format. As suggested, I’m aproaching this issue in two steps:

Pytorch to ONNX
ONNX to CoreML format

However, while converting a simple UNET with ResNet backend to ONNX, I get the following error:
RuntimeError: Failed to export an ONNX attribute, since it’s not constant, please try to make things (e.g., kernel size) static if possible
I took a look at torch.onnx code, but it is not easy to find exactly what line of the code (model) is provoking this error.
So, my question is: how to debug this conversion? There is a way to find what is causing this error? (turning verbose to True do not help)
Regards,