An invariance constrained deep learning network for PDE discovery