I would not leave your baby in the crate for that long. At the very least have someone come to let him/her out for a potty break, or several. There are services where you can have someone come to your house and play with your dog, walk them, potty break, for an hour or so. Or, could you dog-proof a room in your house and leave the dog fenced in there?
If if at all possible look into doggy daycare a few days a week. Being in the crate 10 hours a day is really not an ideal situation. You'll be tired from school and won't want to deal with a hyperactive dog who's been cooped up all day.