Deep Learning for Factor Graph Based-State Estimation