Model returning nan as output

I’ve tried printing it for few batches, the values being printed were all real values and not nans