Nan Loss Check the dataset, there is at least one array with all zero values. Check labels, there will be a nan.