PINF: Continuous Normalizing Flows for Physics-Constrained Deep Learning