chuangg / CLEVRER

PyTorch implementation of ICLR 2020 paper "CLEVRER: CoLlision Events for Video REpresentation and Reasoning"
111 stars 26 forks source link

gradient computation error #12

Open Zest86 opened 6 months ago

Zest86 commented 6 months ago

Hi there!Has someone encountered a problem like:

RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.FloatTensor [512, 1]], which is output 0 of AsStridedBackward0, is at version 2; expected version 1 instead. Hint: the backtrace further above shows the operation that failed to compute its gradient. The variable in question was changed in there or anywhere later. Good luck!

I tried several times to replace possible in-place operations, which didn't help. Could this be a python version problem?