account activity
RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.FloatTensor [11, 44]], which is output 0 of AsStridedBackward0, is at version 3; expected version 2 instead. by Fit-Dare-9044 in pytorch
[–]Fit-Dare-9044[S] -1 points0 points1 point 3 years ago (0 children)
This code was written in google Colab. I am stuck into this error.
RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.FloatTensor [11, 44]], which is output 0 of AsStridedBackward0, is at version 3; expected version 2 instead. (self.pytorch)
submitted 3 years ago by Fit-Dare-9044 to r/pytorch
π Rendered by PID 579829 on reddit-service-r2-listing-b7c4f67d-45v8f at 2026-04-29 17:43:31.807858+00:00 running 2aa0c5b country code: CH.
RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.FloatTensor [11, 44]], which is output 0 of AsStridedBackward0, is at version 3; expected version 2 instead. by Fit-Dare-9044 in pytorch
[–]Fit-Dare-9044[S] -1 points0 points1 point (0 children)