Physics in neural network