W4_A2_L_Layer_Model cells not outputting anything

This is a general issue I’m having with the L_Layer_Model of W4_A2. The L_Layer_Model exercise does not seem to ever run and have output. I have ran all cells, restarted kernel, restarted kernel and ran all, restarted and cleared output and then ran all and just ran the cell but it never outputs anything so it is difficult to understand where I am going wrong. I have now resorted to submitting and reading the grader output to find my errors. Is this normal or what is going wrong with the cells in L_Layer_Model? Thank you.

1 Like

Um, I am not sure what you mean it outputs ‘nothing’.

Of course you have to run cell [25] to init/call it, or nothing will happen.

Also consider [*] means a looked at cell is currently running/processing. None of these here should take too long, but hopefully you haven’t written code that has put you in an infinite loop.

But, no, it is not normal.

1 Like

Thank you, I think I figured out what was causing my issue, my train model in 4.1 was taking so long to even start up so when I ran all it would take over 10 minutes to even get to cell 25 and cell 25 was just running really, really slow. I think my device is just really slow at running.

1 Like

Note if you are using the Coursera website to run the notebooks then nothing actually executes on your device: it is all running in the cloud on AWS servers. Of course you might have gotten unlucky and the particular VM your tasks are running on was having trouble. You can try just closing the notebook and reopening it and hope you get assigned to a VM that is not so heavily loaded. Or if that doesn’t work, you could log out of Coursera and log back in again. That would increase your chance of getting a different server. It could also be that there are problems on the network somewhere between your web browser and the AWS servers.

Also make sure that you didn’t accidentally over-ride the “print flag” to be False always.

1 Like