Programming Assignment: AutoEncoder Model Loss and Accuracy : Learner Error: Grader ran out of memory

I can’t get over this assignment as it always goes
in error with “Learner Error: Grader ran out of memory” even with very simple models.

Can anyone help me?

There is probably some loop running forever, probably. I would suggest at this point go again over your solutions maybe a simple mistake is happening somewhere.