Stuck at the propagate function in Exer 5 in Week 2

For forward #

{moderator edit - solution code removed}

Please help to get the right values

The code you wrote for dw does not match what the math formula says, right?

Doesn’t that line throw an error for mismatching dimensions?

Please note that we aren’t supposed to publicly post our source code here. Usually we can help just by seeing the error outputs you are getting. And if we can’t, there are private ways to share code (Discourse has a DM feature). It’s fine to post an exception backtrace, even though that reveals a little bit of the source code.

Yes. Assertion error. But experimenting with the code helped me resolve this. Also, apologies for posting the source code here. Will be careful not to do this from next time. Thanks @paulinpaloalto