If you cannot find the inplace operation, you might want to add .clone() operations to the activations and check, which line of code causes the issue. This is a bit cumbersome, so you could also check again for all inplace ops. They should either use the inplace=True argument or are used via an inplace op directly, e.g. a += b.