Open stanislawmorawski-digica opened 8 months ago
@Olivia-liu , is it possible to print out the module stack when a node is not supported? cc @tarun292 @Jack-Khuu
@stanislawmorawski-digica were you able to resolve the issue / do you have an example how you are creating the export?
Hi @hietalajulius @stanislawmorawski-digica , are you able to successfully export any yolo models to executorch? I have been stuck on this point for a while.
Hi @liuyibox! I have not tried, I'm assuming it does not work until someone posts a working example :D
I was converting ultralytics/yolov5 from torch hub to executorch. Unfortunately one of the layers was unsupported, and the program exited with an error on this line:
executorch_program: exir.ExecutorchProgramManager = edge_program.to_executorch()
. The traceback was:I've looked into the file being exported and this is what I saw:
What is the recommended way to find out which layer in the
nn.Sequential
failed?Given that:
I've ended up monkey-patching the model and unwinding the nn.Sequential by hand:
Executing this way I've found out that 11th layer is actually nn.Upsample which is unsupported. But my question is: Is there a better way? Is there a
torch.export.log()
or something similar?