I can honestly say I've had some of the best training sessions, resistance training or endurance training sessions, after a really poor night's sleep, but that's the rare event. More often than not, if I'm not sleeping well, I've had a terrible night's sleep, the next day, I will just skip training that day.