-
Notifications
You must be signed in to change notification settings - Fork 6.8k
How to debug hybridize() failures? #10875
Comments
What I can tell from the logs is the mismatching multiplication behavior in hybridized/non-hybridized versions. |
Yup, that was it - thanks! Hopefully there's a better way to figure this out in the future, or a list of guidelines to avoid having to change code after debugging - I had to change about 5 lines and change the minus, plus, and multiply operators to F.broadcast_sub and F.broadcast_add and F.broadcast_mul. |
@piiswrong Is this a bug or simply we cannot detect to use broadcast operators properly? |
+-/ operators behave differently for symbol and ndarray due to legacy reasons (broadcast_) cannot do reverse infer shape. We should explain this difference in the error message |
#9686 (comment) I included the eventual solution in this comment |
@szha can we close out this issue now since it's been tracked by the roadmap issue? thanks |
My model runs fine without hybridize, but I need the speed boost.
When I call hybridize I get a cryptic failure message:
There are many multiplies and nodes of that shape. How can I figure out why hybridize is not working? i.e. what line of code
normaldef0_fastpoissonlogprob0__mul0
corresponds to?Thanks!
The text was updated successfully, but these errors were encountered: