The error is not an annoyance and is rightfully raised since you are using disallowed inplace operations, which would otherwise create invalid gradients. @KFrank gives a few great examples as e.g. in this post.