Open brunompacheco opened 1 year ago
I did the changes you mentioned, then it returned: TypeError: 'QuadCost' object is not callable
c:\project\ilqr\mpc.pytorch\mpc\util.py(149)get_cost() 147 obj = 0.5*bquad(xut, C[t]) + bdot(xut, c[t]) 148 else: --> 149 obj = cost(xut) 150 objs.append(obj) 151 objs = torch.stack(objs, dim=0) Do you know why? Thank you.
It seems that one of the tensors passed to RMSProp is not a leaf tensors (it was created through some operations that were registered in the grad graph).
To reproduce, just execute
python imitation_nonconvex/il_exp.py --mode sysid
.I am using pytorch 1.31.1.
Error: