Energetic Variational Neural Network Discretizations to Gradient Flows