I think I would not be very nervous about leaving a Chihuahua with an infant...
But I would never leave a large dog unattended with a small child.
Pomeranians have killed babies.
A dog is a dog, regardless of breed or size and should not be left alone with babies.