A deep double Ritz method for solving partial differential equations