Probabilistic Inference in the Era of Tensor Networks and Differential Programming