One of the most important skills as a parent with kids and dogs is the ability to "predict" an outcome. This applies to many aspects of interaction. Knowing your dog well and anticipating his response is essential to helping set your dog and baby up for success. Here is an example of this.
In the top photo the baby is playing in the excersaucer close to the couch at eye level with the dog. The dog may feel cornered and the baby may be able to reach the dog.
The middle photo shows the dog's response to the direct eye contact on his level by "avoiding" it and turning away.