-
Notifications
You must be signed in to change notification settings - Fork 469
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flatten layer followed by linear layer causes HardFault on Cortex M4F #7651
Comments
Thanks for the detailed bug report @ChristophKarlHeck. Skimmed through your runner code and it seems OK. Looking at the error, PC suggests we are in the weeds, dereferenced a nullptr? Can you figure out which branch following LR? Also looking at FSRs - seems like UFSR:INVSTATE and HFSR:FORCED. Not sure what is going on TBH. Couple of suggestions, Thanks again. |
Hi @ChristophKarlHeck How is it going are you still stuck? |
Hi @zingo,
Since I am in the middle of my master's thesis, I must prepare for the MVP. I will do further research when the MVP is ready :) |
Good luck I hope it goes well! |
@zingo can we try to repro it on our end using our M55 FVPs? |
With a bit of luck running the arm aot compiler and not using the delegate flag should probably just run in on Cortex-M only. |
🐛 Describe the bug
Hi,
I want to run the following model on NUCLEO_WB55RG. At the moment, I am getting a HardFault, and I am using this executor_runner: https://github.com/ChristophKarlHeck/mbed-torch-fusion-os/tree/main/src/model_executor
HardFault:
But the following models don't cause a HardFault:
Therefore, it has something to do with the
flatten
layer followed by the linear layer.I also tried the
torch.reshape
function, but the export function mapsreshape
andflatten
to view: "f32[1, 64]" = torch.ops.aten.view.default(max_pool1d, [1, 64]); max_pool1d = None.Does anybody have a related issue or an idea of how to fix it?
Please let me know if you need some further information.
Versions
The text was updated successfully, but these errors were encountered: