I defined a type of loss and encounter *** RuntimeError: a leaf Variable that requires grad has been used in an in-place operation. The loss is defined as follows
for u in range(0,le):
for v in range(0,le):
in which p and q are index-maps pre-defined.
Can someone give me a help to solve the problem, thx a lot