Same code but huge difference in the losses

I’ve written the code as per the way it is directed in the video even though there is a huge difference in the losses…