C4W4 assignment2 exercise6

I don’t know why but codes get “all tests pass” for the first run, but when I ran it again it got an error, and each time I ran it the value changed, the tensor value kept decreasing. Thank you!!!



The notebook code is stateful. If you want consistent results, you can’t just rerun a few of the cells. You have to restart from a clean slate. Try this sequence:

1) Kernel -> Restart and Clear Output
2) Cell -> Run All
3) Go to 1

You should see consistent results.

2 Likes

Yes! It works now! Thank you so much!!!