differentiable-mpc icon indicating copy to clipboard operation
differentiable-mpc copied to clipboard

Increasing GPU memory usage

Open MohammadHossein-Bahari opened this issue 5 years ago • 1 comments

Hi,

When I use the differentiable mpc in my code (installed using pip), Cuda memory gradually increases each iteration leading to memory error. It seems there is a memory leakage in the code. Do you know where it is and what is the solution?

I use the following parameters: x_pos, control, objs_lqr = mpc.MPC( n_state=n_state, n_ctrl=n_ctrl, T=T, u_lower=u_lower, u_upper=u_upper, lqr_iter=30, verbose=-1, n_batch=n_batch, grad_method=GradMethods.AUTO_DIFF, exit_unconverged=False, detach_unconverged=True, backprop=True, slew_rate_penalty=0.001, )(x_init, QuadCost(Q, p), dx)

Thanks

MohammadHossein-Bahari avatar May 25 '20 16:05 MohammadHossein-Bahari

Hi, I have met the same problem, have you solved it?

Yansa2000 avatar Dec 14 '22 07:12 Yansa2000