Update weights of network by differential equation

I have a problem with weight updating. I want to update the weights by differential equation, which means weight is updating time-dependently. How to implement it as the weight is also updated by gradient decent ( gradient decent goes after differential equation update).

Thank you so much in advance. : )

Sorry, I solved it. Thank you