Machine Learning With Differentiable Physics Priors