Solved by ptrblck in post #2 
              
              
                As the error states, you’ve modified a variable by an inplace operation by using x += .... 
If you want to sum the conv output to x, you should write out the operation as: 
x = x + self.activation(conv(x))