C2W3 service died every time I run 'forward_propagation_test'

it will take a long time to run ‘forward_propagation_test’ before the notebook report ‘service dead’,then if I run it again ,it shows error like above

Any time you restart the kernel, you need to run all the previous cells again to recreate the runtime state, including any variables created e.g. new_train.

But the first question is why running your forward propagation kills the kernel. You must have something wrong in that code. E.g. an infinite loop (maybe caused by “recursion”) or you are printing vast amounts of output in some inner loop that causes the memory footprint to become huge.

1 Like

turns out my code did had a mistake
Thank You!